The program must use a loop

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.

Constraints:

Do not develop this program using separate functions – develop it as a single main function.
The program MUST use a loop to read in the series of integers from the user. The output is then displayed after the loop.
Algorithm or Pseudo Code (as an outline): At the beginning or end or your program write the algorithm or pseudo code as a multi-line comment.
Output must be clear and indicate which number is the largest and which number is the smallest.

Leave a Reply

Your email address will not be published. Required fields are marked *