小学生算数题大全
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
void main(){
int a,b,i,d;
for(i=1;i<300;i++){
d=rand()%4;
a=rand()%100;
b=rand()%100;
switch(d){
case 1:printf("%d+%d=\n",a,b);
case 2:printf("%d-%d=\n",a,b);
case 3:printf("%d*%d=\n",a,b);
case 4:printf("%d/%d=\n",a,b);
}
}
}