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