Question: C++ Problem 3: Write a program which reads an integer number Z from the user, checks whether Z is an even number or not, and
Problem 3: Write a program which reads an integer number Z from the user, checks whether Z is an even number or not, and displays an appropriate message. Hint: The modulo operator ( %) can be used to find out if a number is an even or odd. Sample Session 1: (Values in Red are entered by the user) Enter the value for Z: 35 Z is an odd number Sample Session 2: (Values in Red are entered by the user) Enter the value for Z: 8 Z is an even number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
