Question: In C++, why is the Boolean expression X%2==0? Write an if-else statement to print out EVEN if x is even; print out ODD if x
In C++, why is the Boolean expression X%2==0? Write an if-else statement to print out EVEN if x is even; print out ODD if x is odd. Here x is an int type variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
