Run ID:67832

提交时间:2024-03-17 14:56:46

#include<bits/stdc++.h> 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; case '/':if(b==0){ cout<<"除数不是0 "; }else{ cout<<a/b; } break; } return 0; }