I cannot run this code. I have no clue why this is happening.
#include
using namespace std;
int main() {
int ch,N1,N2;
while(true){
cin>>ch;
if(ch ==’+’ || ch == ‘-’ || ch == ‘’ || ch == ‘/’ || ch == ‘%’){
cin>>N1>>N2;
if(ch == ‘+’){
cout<<(N1+N2);
}
else if(ch == ‘-’){
cout<<(N1-N2);
}
else if(ch == '’){
cout<<(N1*N2);
}
else if(ch == ‘/’){
cout<<(N1/N2);
}
else{
cout<<(N1%N2);
}
}
else if(ch == ‘X’ || ch == ‘x’){
break;
}
else{
cout<<(“Invalid operation. Try again.”);
}
}
}