Basic Callculator

#include
using namespace std;
int main() {
char ch;

long long int n1,n2;
		cin>>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;
	break;
	case'x' :
	case'X' :
	break;
	default :
	cout<<"Invalid operation. Try again.";
	break;		
	}
return 0;

}

This code pass only 3 test cases .Can you tell me what is the problem in this code?

Please save your code on ide.codingblocks.com and then share its link.

How to share the link after saving the code?

After clicking on the save button copy the url from your browser and paste it here.

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.