#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
int x, y, z, t,i;
srand(time(NULL));
printf("小学三年级四则运算练习题
");
for (i = 0; i <100; i++)
{
x = rand() % 100;
y = rand() % 100;
z = rand() % 4;
printf("%d", x);
switch (z)
{
case 0:printf("+"); break;
case 1:printf("-"); break;
case 2:printf("*"); break;
case 3:printf("/"); break;
}
printf("%d=
", y);
}
system("pause");
}