Question: Use a while loop to write a program that keeps reading a value from a user between 0 and 60 in a String or letter
Use a while loop to write a program that keeps reading a value from a user between 0 and 60 in a String or letter Q to quit and then prints if the number is even or odd.
Typical Run :
make sure you provide a screenshot of your code and the output with your name in it. Any student who does not provide a screenshot will get zero mark for this question.
Enter a number between 0 and 60 or Q to quit: You entered a correct value >> the number is Odd Enter a number between 0 and 60 or Q to quit: 70 invalid input Enter a number between 0 and 60 or Q to quit: 60 You entered a correct value >> the number is even Enter a number between 0 and 60 or Q to quit: * progcamm ended *Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
