小学生算数题大全

#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);
}
}
}

posted on 2016-03-10 21:30  101赵英男  阅读(392)  评论(1编辑  收藏  举报

导航