#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?