#include
using namespace std;
int main() {
int a,b,r;
char op;
cin>>op>>a>>b;
while(true){
switch (op) {
case '+':
r=a+b;
cout<<r;break;
case '-':
r=a-b;
cout<<r;break;
case '*':
r=a*b;
cout<<r;break;
case '/':
r=a/b;
cout<<r;break;
case'X':
break;
case'x':break;
default: cout<<"Invalid operation. Try again";
}
}
return 0;
}
please help me to “reduce time problem”