#define _CRT_SECURE_NO_WARNINGS
#include
#include
#include
int main()
{
int a, b, c, z;
srand((int)time(NULL));
printf("这是小学生乘法练习n");
printf("生成随机数乘法运算n");
a = rand() % 10;
b = rand() % 10;
printf("%d*%d=?n", a, b);
printf("请输入你的答案:");
scanf("%d",&c);
z = a * b;
if (c == z)
printf("right!n");
else
printf("wrong!");
return 0;
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)