Question: Write a Java program that prompts the user to enter integers and reads them in until they enter the integer 10. Once this happens, the
Write a Java program that prompts the user to enter integers and reads them in until they enter the integer 10. Once this happens, the program stops prompting for input, and then outputs the minimum value entered and the maximum value entered, and either of these may be the final 10 that is entered.
Sample Data #1: Enter int: -5 Enter int: 9 Enter int: -7 Enter int: 4 Enter int: 10 min: -7 max: 10
Sample Data #2: Enter int: 20 Enter int: 35 Enter int: 15 Enter int: 10 min: 10 max: 35
Sample Data #3: Enter int: 7 Enter int: 12 Enter int: 6 Enter int: 9 Enter int: 10 min: 6 max: 12
Sample Data #4: Enter int: 10 min: 10 max: 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
