Question: Write: a while loop that asks the user for an even number. If they enter an even number, print Good Job! to the screen. Otherwise,

Write: a while loop that asks the user for an even number. If they enter an even number, print
"Good Job!" to the screen. Otherwise, print the number they gave you, followed by' is not
even, try again" and ask for a new number. For example, the following is an interaction with this
program:
1 Please enter an even number: 3
23 is not even, try again: 7
37 is not even, try again: 12
4 Good Job!
Write: a while loop that asks the user for an

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 Programming Questions!