Question: Exercise # 2 : Odd - Even Write a C + + program that prompts the user to input an integer, the program then does

Exercise #2: Odd-Even
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 -13
Please enter a positive integer.
Enter an integer 28
28 is Euen.
Enter an integer 2121 is Odd.
 Exercise #2: Odd-Even Write a C++ program that prompts the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!