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
Get step-by-step solutions from verified subject matter experts
