Question: Write a program that prompts the user for a number, tests to see whether that number is even or odd, and prints out Number is
Write a program that prompts the user for a number, tests to see whether that number is even or odd, and prints out "Number is Even" if it is even, or "Number is Odd" if it is odd.
Hint: An even number is one that is dividable by 2 and has no remainder! Look up the % operator.
Step by Step Solution
3.50 Rating (143 Votes )
There are 3 Steps involved in it
Heres a Python program to prompt the user for a number test if its even or odd a... View full answer
Get step-by-step solutions from verified subject matter experts
