标签:
#include<iostream> #include<cstdio> using namespace std; int main() { char c; int n,m; scanf("%c",&c); scanf("%d%d",&n,&m); if(c==‘+‘) printf("%d\n",n+m); if(c==‘-‘) printf("%d\n",n-m); if(c==‘*‘) printf("%d\n",n*m); if(c==‘/‘) printf("%d\n",n/m); return 0; }
标签:
原文地址:http://www.cnblogs.com/cancangood/p/4339601.html