Question: 3 (Odd or Even) Write a program that reads an integer and determines and prints whether it's odd or even. [Hint: Use the modulus operator.
3 (Odd or Even) Write a program that reads an integer and determines and prints whether it's odd or even. [Hint: Use the modulus operator. An even number is a multiple of two. Any multiple of two leaves a remainder of zero when divided by 2.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
