Basic calculator

why is (Invalid operation. Try again) gets displayed on screen everytime. please help

You need to use do while loop to solve this question as :
do
{
cin>>ch;
if(ch==‘X’ or ch==‘x’)
{
return 0;
}
else
if(ch==’+’ or ch==’-’ or ch==’/’ or ch==’’ or ch==’%’)
{
cin>>n1>>n2;
}
switch(ch)
{
case ‘+’ :
case ‘-’ :
case '
’ :
case ‘/’ :
case ‘%’ :
default : cout<<“Invalid operation”;
break;
}
}while(ch!=‘X’ or ch!=‘x’ or ch==’+’ or ch==’-’ or ch==’*’ or ch==’/’ or ch==’%’)

yeah its correct but can you please identify what have i done wrong in the code

Shubham… your code is not working … not producing any output… except TLE… thts why I have asked you to change your approach accordingly…