User:Deryck Chan/Cpp

Hoi Hao Jung
using namespace std; int main {    srandom ( time(NULL) ); int m=(random%99)+1; // rand%99 gives 0-98, +1 gives 1-99 int up=100, down=1, n=m; for { cout << down << " to " << up << endl; int in; cin >> in; if (in==n) {                  cout << "BREAK!" << endl; system ("Pause"); // (Windows, not Unix) break; }        else if (in>up || inn) {             up=in; }        }         return 0; }
 * 1) include
 * 2) include
 * 3) include 