题解 | #简单运算#
简单运算
http://www.nowcoder.com/practice/23c9b22d40fa4d7698a1306fb0c9f975
#include using namespace std;
int main() { int a,b;
cin>>a>>b;
if(a>b&&b!=0){
cout<<a+b<<" "<<a-b<<" "<<a*b<<" "<<a/b<<" "<<a%b<<endl;
}
if(b>a&&a!=0){
cout<<b+a<<" "<<b-a<<" "<<b*a<<" "<<b/a<<" "<<b%a<<endl;
}
return 0;
}