Hi, I just started taking a class on C++ and I'm a little lost on what looks to be a really easy part of an assignment. I would greatly appreciate it if anyone could help me out. I don't necessarily want you to tell me all the way, but maybe give me a hint.
Any way the assignment is:
"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."
I have the input looped and it will stop after you enter -99 that was not a problem, but I can't figure out how to get the smallest and largest numbers out of what was entered. I used a while loop, was that not the way to go or will it work?
Again, any help would be appreciated. Thanks.