Have a query in my code(how I place ch in between N1 and N2)

#include
using namespace std;
int main() {
char ch;
cin>>ch;
int N1;
int N2;
while(ch == ‘X’ || ch ==‘x’){
cin>>N1>>N2;
int N;
if(ch ==’+’ || ch ==’-’|| ch == ‘*’ || ch == ‘/’ || ch== ‘%’){

		 N = N1  N2;
		 cout<< N <<endl;
	 }
	 else{
		 cout<<"Invalid operation. Try again. ";
	 }
 }

return 0;

}

hello @
u need to explicitly write the operator in between operator.

for example.
if(ch==’+’){
N=N1+N2;

}

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.