I am getting the sample output but i am not able to submit as it shows all testcases failed. what is wrong with it?

#include
using namespace std;
int main() {
char ch;
int n1, n2;
cin>>ch;
do{
if (ch == β€˜x’ || ch == β€˜X’){
cout<<β€œInvalid operation. Try again”<<endl;
break;
}
if (ch == β€˜β€™ || ch == β€˜/’ || ch == β€˜+’ || ch == β€˜-’ || ch == β€˜%’){
cin>>n1>>n2;
switch(ch){
case '
’ : cout<<n1*n2<<endl;
break;
case β€˜+’ : cout<<n1+n2<<endl;
break;
case β€˜-’ : cout<<n1-n2<<endl;
break;
case β€˜/’ : cout<<n1/n2<<endl;
break;
case β€˜%’ : cout<<n1 %n2<<endl;

            }
            cin>>ch;
        }
    
        else {
            cout<<"Invalid operation. Try again"<<endl;
            cin>>ch;
        }
    }while(ch != 'X' && ch != 'x');
return 0;

}

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

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.