标签:
代码
#include<iostream>
using namespace std;
void main(){
int x,y,z;
for(int i=0;i<30;i++){
x = rand()%100;
y = rand()%100;
z = rand()%4;
if(z ==1 )
cout<<x<<" + "<<y<<endl;
if(z ==2 )
cout<<x<<" - "<<y<<endl;
if(z ==3 )
cout<<x<<" * "<<y<<endl;
if(z ==4 )
cout<<x<<" / "<<y<<endl;
}
}
标签:
原文地址:http://www.cnblogs.com/laozhanghahaha/p/4319440.html