#include
using namespace std;
int main() {
char ch;
ch=cin.get();
while(ch!=βXβ and ch!=βxβ){
int a,b;
cin>>a>>b;
switch(ch){
case β+β:cout<<(a+b)<<endl;
break;
case β-β:cout<<(a-b)<<endl;
break;
case 'β:cout<<(ab)<<endl;
break;
case β/β:cout<<(a/b)<<endl;
break;
case β%β:cout<<(a%b)<<endl;
break;
default:cout<<βInvalid operation. Try again.β<<endl;
break;
}
ch=cin.get();
}
return 0;
}
when i run this code for sample input in sublime editor it runs infinite time.please tell me what is the error in this code.