Code:
#include <iostream>
using namespace std;
int main()
{
int number1;
cout<< "Please Enter A Number: ";
cin>> number1;
cin.ignore();
if ( number1 > 10 ); {
cout<< "I Told You It Had To Be Less Than 10!\n";
cout<< "No More Chances For You!\n";
cout<< "Press Enter To Close";
}
else {
cout<< "Well Done! You Entered: " << number1 << "Which Is Less Than 10, Just As I Asked!\n";
cout<< "Now Press Enter Please!";
}
cin.get();
}
This is the code i have entered, as you can see it is a very basic code.
Could someone please tell me where i have gone wrong? as i get the error code mentioned in the title.
Thanks in advance!