Question: write a while loop or for loop in a java program that satisfying these specs: It asks the user to enter an integer called low.
write a while loop or for loop in a java program that satisfying these specs:
It asks the user to enter an integer called "low". It is OK if your program crashes when the user does not enter a valid integer here.
It asks the user to enter an integer called "high". It is OK if your program crashes when the user does not enter a valid integer here.
If low high, the program prints, in ascending order, all integers between low and high (including low and high), except for multiples of 4.
If low > high, the program just prints "no numbers found" and exits.
For example, if the user enters 7 for low and 13 for high, your program output should look EXACTLY like this:
Enter low: 7
Enter high: 13
7
9
10
11
13
As another example, if the user enters 5 for low and 4 for high, your program output should look EXACTLY like this:
Enter low: 5
Enter high: 4
no numbers found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
