Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 1
Odd variables
how to say (if the variable is odd) in c++
2 Antworten
+ 6
cin>>num;
if (num % 2 != 0)
cout<<"odd number";
+ 2
if (var % 2 != 0){
cout<<"Odd"
}