Question: Design a pseudocode and write a Java program that uses while loops to perform the following steps: a. Prompt the user to input two integers.

Design a pseudocode and write a Java program that uses while loops to perform the following steps: a. Prompt the user to input two integers. First integer number must be less than second integer number. If the user enter the wrong numbers, display an error message and ask the user to enter the correct input. b. Output all the odd numbers between the first integer number and second integer number inclusive. c. Output all the even numbers between the first integer number and second integer number inclusive.

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!