Answers for "Operatore ternario c++"

0

Operatore ternario c++

#include<iostream>
using namespace std;
int main(){
	int a;
	cin>>a; 
	int b; 
	if(a == 5){
		b = 10;
	}else{
		b = 20;
	}
}
Posted by: Guest on April-21-2021

Browse Popular Code Answers by Language