Question: Ask the user to enter two integers between 1 and 100 (inclusive). If either input does not meet this condition, display Both should be between

Ask the user to enter two integers between 1 and 100 (inclusive).

If either input does not meet this condition, display Both should be between 1 and 100. Start over.

Otherwise (if both are between 1 and 100), then display

even even or

odd odd or

even odd or

odd even

according to the input.

(e.g. if the first integer is 105, and the second is 32, then display odd even).

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!