Question: Write an application that asks a user to type an even number or the sentinel value 999 to stop. When the user types an even
Write an application that asks a user to type an even number or the sentinel value 999 to stop. When the user types an even number, display the message Good job! and then ask for another input. When the user types an odd number, display an error message and then ask for another input. For example, if 101 is input, the error message should be:
When the user types the sentinel value 999, end the program.
Mine keeps failing the odd number test but will get the even number test right. What am I doing wrong?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
