Question: please help me with this question. Thanks Problem 1: Largest and Smallest Write a program with a loop that lets the user enter a series


please help me with this question. Thanks
Problem 1: 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. Expected Output: Test Case 1: Enter a number, -99 to exit:96 Enter a number, -99 to exit:52 Enter a number, -99 to exit:89 Enter a number, -99 to exit: -99 Largest number is:96 Smallest number is:52 Test Case 2: Enter a number, -99 to exit:-5 Enter a number, -99 to exit: -6 Enter a number, -99 to exit: -7 Enter a number, -99 to exit: -99 Largest number is: -5 Smallest number is:-7 Test Case 3: Test Case 3: Enter a number, -99 to exit:-5 Enter a number, -99 to exit:6 Enter a number, -99 to exit: -10 Enter a number, -99 to exit:-99 Largest number is:6 Smallest number is: -10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
