Question: please answer in java and can you make sure I can copy and paste it 10. Largest and Smallest Write a program with a loop

 please answer in java and can you make sure I can

please answer in java and can you make sure I can copy and paste it

10. Largest and Smallest Write a program with a loop that lets the user enter a series of integers. The user should enter -99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered. The value -99 is not to be counted as part of the series. SAMPLE RUN #4: java LargestAndSmallest Interactive Session Hide Invisibles Enter an integer.(-99.to stop):1 Enter an integer. (-99.to stop):1- Enter an integer. (-99.to stop): 2- Enter an integer.(-99.to stop):3- -Enter an integer.(-99.to stop): 5- - Enter an integer. (-99.to stop): 8- Enter an integer. (-99.to stop):13- Enter an integer.(-99.to stop):21- - Enter an integer. (-99-to.stop): 34- Enter an integer. (-99.to stop):55- Enter.an integer:(-99.to stop):-99- The smallest number.was:1 The largest number.was: -552

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!