Write a program that reads an integer and prints whether it is even or odd. Use the modulo operator % to determine divisibility by 2. Declare an int and read it with cin. Use if (num % 2 == 0) to check for even.
If true, print "Even". Otherwise, print "Odd". Test with 4, 7, and 0. Zero is even because 0 % 2 == 0. Negative numbers work the same way. This reinforces modulo and conditional logic.