#include
using namespace std;
int main() {
int b,c;
char a=‘a’;
while(a!=‘X’||a!=‘x’)
{
cin>>a;
if(a==’+’)
{
cin>>b>>c;
cout<<b+c<<endl;
}
else if(a==’-’)
{
cin>>b>>c;
cout<<b-c<<endl;
}
else if(a==’’)
{
cin>>b>>c;
cout<<bc<<endl;
}
else if(a==’/’)
{
cin>>b>>c;
cout<<b/c<<endl;
}
else if(a==’%’)
{
cin>>b>>c;
cout<<b%c<<endl;
}
else{
cout<<“Invalid operation. Try again.”<<endl;
}
}
return 0;
}