#include <iostream.h>
int main ()
{
int i;
int j;
i = 5000;
cout << "Please enter a number";
cin >> j;
if j > i;
cout << "Your number is greater than 5000";
if j == i;
cout << "Your number is 5000";
else
cout << "Your number is lesser than 5000";
return 0;
}
For any other complete newbies out there, I left the brackets out it should look like this
if (j > i) {
cout <<" BLAH BLAH" << endl;
}
Edited by Whipsmack, 15 June 2005 - 03:49 PM.