someone please help me do the loop .....thanks ...
..here is the problem ...the user will enter integer values until 0 is entered. The program will find the lowest and highest values entered.It will also calculate the total number of value entered.....
#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
int main()
{
int highestInt = 0;
int lowestInt = 0;
int integer;
int counter = 0;
cout << "Input integer: " ;
cin >> integer ;
while (integer==0)
{
counter ++ ;
}
if (integer > highestInt)
highestInt = integer;
if (integer < lowestInt)
lowestInt=integer;
counter = counter + 1;
cout << "lowest number: " << lowestInt << endl;
cout << "highest number: " << highestInt << endl;
cout << "count number: " << counter << endl;
system("pause");
return 0;
}