Question: Write a Java program using for statement to display all odd numbers between X and Y. The value of X and Y will be input

Write a Java program using for statement to display all odd numbers between X and Y. The value of X and Y will be input by a user (from keyboard). If the difference between X and Y is less than FIVE (5) or more than TEN (10), then the user MUST input again.

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!