- 分享
2024/1/7 11:57
- 2024-1-7 11:58:08 @
#include <iostream>
using namespace std;
int main(){
int a,b,s;
char c;
cin>>a>>c>>b;
if (c=='+'){
s=a+b;
}else if(c=='-'){
s=a-b;
}else if(c=='*'){
s=a*b;
}else if(c=='/'){
s=a/b;
}else{
cout<<"输入错误"<<endl;
}
cout<<s<<endl;
return 0;
}
0 条评论
目前还没有评论...