#include<stdio.h>
#include<stdlib.h>
int main()
{
int a,b;
int k,i;
for(i=0;i<300;i++)
{
b=rand()%100;
a=rand()%100;
k=rand()%4;
switch(k)
{
case 0:printf("%d+%d=\n",a,b);break;
case 1:printf("%d-%d=\n",a,b);break;
case 2:printf("%d*%d=\n",a,b);break;
case 3:printf("%d/%d=\n",a,b);break;
}
}
}
时间: 2024-10-18 22:31:33