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