#include <iostream>
#include <cmath>
#include <stdio.h>
using namespace std;
int main ()
{
int n, x=0, ans;
int b=0;
do
{
x++;
cout << "\nINPUT NUMBER: ";
cin >> n;
if(b<n)
{
b=n;
}
}
while (x<=10);
cout << "\n";
cout << "\nHIGHEST: " << b;
system ("PAUSE");
return 0;
}
the problem is when i run it; its okay! but after the eighth input it just stop! wont even reach 10! help tried goto, for, while, and do while! the same problem