#include <stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
int a,b,c;
srand(time(NULL));
a=rand()%10;
b=rand()%10;
printf("a=%d\n",a);
printf("+");
printf("b=%d\n",b);
scanf("%d",&c);
if(c==a+b)
printf("yes,you are right");
else(c!=a+b)
printf("no,you are wrong");
return 0;
}
总是有一个错误啊,怎么办啊!!!!