Not able to figure out where I am going wrong

#include
using namespace std;

int main(){

char ch;
cin>>ch;

if(ch=='+'|| ch=='-'||ch=='*'||ch=='/'||ch=='%'){
int N1,N2;
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;
case 'x' :
case 'X' : 
break;

default: cout<<"Invalid operation. Try again."<<endl;
break;
}


}

return 0;

}

hello @anuragsen9617
u need to keep reading element till u not encounter breaking condition.
use while to implment the same.

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.