代码文本:
#include "stdio.h"
#include "stdlib.h"
#include "time.h"
int main(int argc,char *argv[]){
int n,m,t;
srand((unsigned)time(NULL));
for(t=0;t<100;t++){
n=rand()%9+1;
while((m=rand()%90+10)%n);
printf(t&1 ? "%d ÷ %d = \n" : "%d ÷ %d = \t\t",m,n);
if(t==49)
printf("\n\n");
}
return 0;
}