#include
using namespace std;
int main() {
int n1, n2,n3;
char ch;
while(ch != 'x' || ch != 'X'){
cin >> n1;
cin >> n2 ;
if(ch == '+'){
n3 = n1 +n2 ;
}
else if(ch == '-'){
n3 = n1 - n2;
}
else if(ch == '*'){
n3 = n1 * n2;
}
else if(ch == '%'){
if (n2 == 0){
break;
}
else {
n3 = n1%n2 ;
}
}
else if(ch == '/'){
if( n2 == 0){
break ;
}
else{
n3 = n1/n2;
}
}
else{
cout << "Invalid operation. Try again."<< endl;
}
cout << n3 << endl ;
cin >> ch ;
}
}
(where is the issue in this code .)