Question: Exercise # 2 : Odd - Even Write a C + + program that prompts the user to input an integer, the program then does
Exercise #: OddEven
Write a C program that prompts the user to input an integer, the program then does the following:
Make sure that the integer is positive; otherwise print an informative statement.
Print whether the number is even or odd.
Sample input output:
Enter an integer
Please enter a positive integer.
Enter an integer
is Euen.
Enter an integer is Odd.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
