only one test case is working
#include
using namespace std;
int main() {
int n1,n2;
char ch;
cin>>ch;
while(ch!='X' || ch!='x'){
switch(ch){
case '+':
cin>>n1>>n2;
cout<<n1+n2<<endl;
break;
case '-':
cin>>n1>>n2;
cout<<n1-n2<<endl;
break;
case '*':
cin>>n1>>n2;
cout<<n1*n2<<endl;
break;
case '/':
cin>>n1>>n2;
cout<<n1/n2<<endl;
break;
case '%':
cin>>n1>>n2;
cout<<n1%n2<<endl;
break;
default: cout<<"Invalid operation. Try again"<<endl;
break;
}
cin>>ch;
}
return 0;
}