赞
踩
- #include <iostream>
- using namespace std;
- int main()
- {
- int a,b;
- char C;
- cin>>a>>b;
- cin>>C;
- if (C=='+')
- cout<<a+b;
- else if(C=='-')
- cout<<a-b;
- else if (C=='*')
- cout<<a*b;
- else if(C=='/')
- cout<<a/b;
- return 0;
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。