Realted to basic c alculator

it shows time limit exceeded
plz check.
int main() {
char ch;
cin>>ch;
while ((ch!=‘x’) || (ch!=‘X’) ){
if(ch==’+’){
int n1,n2;
cin>>n1>>n2;
cout<<n1+n2<<endl;

	 }
	 else if(ch=='-'){int n1,n2;
		 cin>>n1>>n2;
		 cout<<n1-n2<<endl;
		 

	 }
	 else if(ch=='*'){int n1,n2;
		 cin>>n1>>n2;
		 cout<<n1*n2<<endl;
		 
	 }
	 else if(ch=='/'){
		 int n1,n2;
		 cin>>n1>>n2;
		 cout<<n1/n2<<endl;
	 }
	 else if(ch=='%'){
		 int n1,n2;
		 cin>>n1>>n2;
		 cout<<n1%n2<<endl;
		 
		 
	 }
	 else{
		 cout<<"invalid response . try again"<<endl;

	 }
	 cin>>ch;
 }

return 0;

}

use && here as we want the loop to break if EITHER of these conditions becomes false

maam it still not working showing same error

@avverma11057 please share your code by saving it on cb ide

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.