CodePudding user response:
#include#include
#include
Int main ()
{
Int answer;//look at what's your answer type, define your own type
While (1)
{
Printf (" (your math subject:... ) ");
//the answer is what kind of read, what type for the integer variables answer here for example
If (the scanf (" % d ", & amp; Answer)=(fill in the correct answer here))
{
Printf (" congratulations you're right ");
break;
}
The else
{
Printf (" think again ");
System (" CLS ");
}
}
system("pause");
}