题解
2023-07-23 13:50:53
发布于:广东
6阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main(){
int m, n;
cin >> m >> n;
char a;
cin >> a;
if(a == '+') cout << m + n;
if(a == '-') cout << m - n;
if(a == '*') cout << m * n;
if(a == '/') cout << m / n;
if(a == '%') cout << m % n;
return 0;
}
这里空空如也
有帮助,赞一个