I trying to write a program that finds the largest number from a known quantity of integers and also finds the smallest integer from a unknown quantity of integers.

These options should be acessed through a menu that looks like this:

A - Find the largest # with a known quantity of numbers

B - Find the smallest # with an unknown quantity of numbers

C - Quit

Please enter your choice ___

...and should repeat until the user choses option C

My problem is figuring out how to use a loop to find the largest and smallest integers in options A and B. I know that I have to cin the input values to a variable to compare it to the largest of the values entered but I having a hard time figuring it out. Any help would be greatly appreciated.