New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Odd variables
how to say (if the variable is odd) in c++
2 Answers
+ 6
cin>>num;
if (num % 2 != 0)
cout<<"odd number";
+ 2
if (var % 2 != 0){
cout<<"Odd"
}
how to say (if the variable is odd) in c++