Question: Write a program that prompts the user to enter a whole number (integer) and then checks to see whether that number is even or odd.
Write a program that prompts the user to enter a whole number (integer) and then checks to see whether that number is even or odd. Print out a message to the screen whether the number the user entered was even or odd. Hint: Use an ifelse statement and the % function!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
