int a,b;char s;while(cin>>a>>s>>b){ switch(s){ case '+' : cout<<a+b<<endl;break; case '-' : cout<<a-b<<endl;break; case '*' : cout<<a*b<<endl;break; case '/' : cout<<a/b<<endl;break; }