hi, im trying to make this thing that asks you a maths question and you have to type the correct answer, if u type it write it will say correct, if u type it wrong it will say incorrect(or you are dumb lol)
heres the code:
Code:
#include <iostream>
using namespace std;
int main()
{
int correct = 0;
int a =5;
int b=10;
int c=25;
cout <<"What is 5 + 10 + 25?= ";
cin >> correct;
cout << "You said the answer is " << correct<<endl;
if int.correct=40
{
cout <<"You are Correct!"<<endl;
}
else
cout <<"lol u r dumb!";
system("pause");
return 0;
}