Run ID:79405
提交时间:2024-07-05 17:01:46
# include<iostream> # include<cstdio> # include<iomanip> # include<cmath> using namespace std; int main(){ int a,b; char op; cin>>a>>op>>b; switch(op) { case '-': cout<<a-b; break; case '+': cout<<a+b; break; case '*': cout<<a*b; break; default: cout<<a/b;break; } return 0; }