I got the original coding done to let the user enter continous numbers, but I am unsure how to assign the numbers the users enter to a variable that will determine what is highest and lowest.
Any insight is greatly appreciated. Here is what I have so far.
#include<iostream>
#include<iomanip>
using namespace std;
void main()
{
int number = 0;
int highest = 0;
int lowest = 0;
cout<< "Enter A Whole Number (-99 to quit): \n";
cin>>number;
while (number != -99)
{
cout<< "Enter another whole number (-99 to quit): \n";
cin>>number;
}
}

New Topic/Question
Reply




MultiQuote




|