#include
#include
#include
#include
int main()
{
/*
* 666!
*/
int x,y,z;
int i;
int point=0;
srand(time(NULL));
printf("how many exercise do you want to try respectively?\n");
int n;
scanf("%d",&n);
for(int j=3;j>=1;j--)
{
printf("还有%ds开始!\n",j);
Sleep(1000);
}
for(i=1;i<=n;i++)
{
x=rand()%100;
y=rand()%100;
printf("%d+%d=",x,y);
scanf("%d",&z);
if(z==x+y)
{
printf("ok!\n");
point++;
}
else
{
printf("error!\n");