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

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