#include
using namespace std;
int main()
{
int x,y;
char c;
while(cin>>x>>y>>c)
{
getchar();
switch(c)
{
case '+':cout<<x+y<<endl;break;
case '-':cout<<x-y<<endl;break;
case '*':cout<<x*y<<endl;break;
case '/';if(y==0)cout<<"无解!"<<endl;else cout<<x/y<<endl;break;
case '%':if(y==0)cout<<"无解!"<<endl;else cout<<x%y<<endl;break;
}
}
return 0;
}
温馨提示:内容为网友见解,仅供参考