Question: Write one java class program to: 1-ask the user to enter: a) A starting integer number b) An ending integer number 2-use a loop to
Write one java class program to:
1-ask the user to enter:
a) A starting integer number
b) An ending integer number
2-use a loop to print out all the ordinal numbers between the starting and ending number with the correct ordinal suffix
3-if the user enters an ending value that is less than the starting value, tell them so and end the program without producing any output.
4if the user enters a starting and ending value more than 1000 numbers apart, tell them so and end the program without producing any output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
