Expand|Select|Wrap|Line Numbers
- #include <iostream>
- #include <iomanip>
- using namespace std;
- int main()
- {
- int numbers; //holds a number of integers
- int numMax; //Holds max value
- int numMin; //holds min value
- cout << "Please enter a series of integers,\n";
- cout << "when finished input -99, then press ENTER." << endl << endl;
- cin >> numbers;
- while (numbers != -99)
- {
- numMax
- cout << "Greatest number in the series is: " << numMax << endl;
- cout << "Least number in the series is: " << numMin << endl;
- cin >> numbers
- }
- return 0;
- }