1.运行截图
2.代码
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i=300;
int a=0;
while(i--)
{
printf("%d",rand()%100);
a=rand()%4;
switch(a){
case 0:printf(" + ");break;
case 1:printf(" - ");break;
case 2:printf(" * ");break;
case 3:printf(" / ");break;
default:;
}
printf("%d",rand()%100);
printf(" = ");
printf("
");
}
}