#include<iostream.h>
#include<stdlib.h>
int main(){
int a ,b,c,i;
for(i=0;i<30;i++){
a=rand()%100;
b=rand()%100;
c=rand()%4;
if(c==0)
cout<<a<<"+"<<b<<"="<<endl;
else if(c==1)
cout<<a<<"-"<<b<<"="<<endl;
else if(c==2)
cout<<a<<"*"<<b<<"="<<endl;
else if(c==3)
cout<<a<<"/"<<b<<"="<<endl;
}
return 0;
}
时间: 2024-10-18 05:31:45