I've written the program out but I'm not sure on how I can get the largest and smallest # to display.. can anyone help? thanks.
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.
#include <iostream>
using namespace std;
int main()
{
int number = 0;
cout << "This program will let you enter number after\n";
cout << "number. Enter 99 when you want to quit the ";
cout << "program.\n";
while (number !=99)
cin >> number;
cout << "Done\n";
return 0;
}