#include
using namespace std;
int main() {
char ch;
do
{
cin>>ch;
if(ch!=‘x’||ch!=‘X’)
break;
int n,m;
switch(ch)
{
case ‘+’: cin>>n>>m;cout<<n+m<<endl;break;
case ‘-’: cin>>n>>m;cout<<n-m<<endl;break;
case '’: cin>>n>>m;cout<<nm<<endl;break;
case ‘/’: cin>>n>>m;cout<<n/m<<endl;break;
case ‘%’: cin>>n>>m;cout<<n%m<<endl;break;
default: cout<<“Invalid operation.Try again”<<endl;break;
}
}
while(1);
return 0;
}