What's wrong in this code?

#include
using namespace std;

int main() {
long long int a,b,c;
char ch;

do {
	cin>>ch;
	if(ch=='+'){
		cin>>a>>b;
		c=a+b;
		cout<<c<<endl;
	}
   else	if(ch=='*'){
		cin>>a>>b;
		c=a*b;
		cout<<c<<endl;
	}
   else	if(ch=='-'){
		cin>>a>>b;
		c=a-b;
		cout<<c<<endl;
	}
	else if(ch=='/' && b!=0){
		cin>>a>>b;
		c=a/b;
		cout<<c<<endl;
	}
	else if(ch=='%' && b!=0){
		cin>>a>>b;
		c=a%b;
		cout<<c<<endl;
	}
	
	else{
		cout<<"Invalid operation. Try again."<<endl;}}
		while (ch!='x' || ch!='X')
	



return 0;

}

hello @ramitkapoor

pls save ur code at cb ide and share its link with me

also share the problem name with me

Basic Calculator is the problem

i line 38 it should be &&. also if in startimg i give x then ur code will print invalid operation so handel that as well

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.