Even or odd
Read a whole number and print even if it is even, or odd if it isn't.
A number is even when the remainder of dividing it by 2 is 0, which you can check with number % 2 == 0. Careful with negative numbers: in C++, -3 % 2 is -1, not 1.
Results will be shown here
Press Run to start your program.