Whats the error in code i am not getting any output

#include
using namespace std;
int main()
{
char ch;
int n1, n2;

while (ch != 'x')
{
    cin >> ch;
    if(ch=='x' or ch=='X')
    {
        break;
    }
    int n;
    if (ch == '+')
    {
        cin >> n1;
        cin >> n2;
        n = n1 + n2;
        cout << n << endl;
    }
    else if (ch == '-')
    {
        cin >> n1;
        cin >> n2;
        
        n = n1 - n2;
        cout << n << endl;
    }
    else if (ch == '*')
    {
        cin >> n1;
        cin >> n2;
        n = n1 * n2;
        cout << n << endl;
    }
    else if (ch == '/')
    {
        cin >> n1;
        cin >> n2;
        n = n1 / n2;
        cout << n << endl;
    }
    else
    {
        
        cout<<"Invalid operation";
    }
    
    
    

}

}

hi
u have not handeled many case
u also have to take input char ch before while loop thats why u can compare
while(ch!=‘X’)
like when ch==%

also
see clearly in question what u have to cout in other than the mention character

i am breaking the loop for x or X

so the need forgetting ch before is over

just tell me how u can check condition in while loop for the first time
u have just write
char ch
while(ch!=x || ch!=X)
now what is ch
here u have to do like that
char ch
cin>>ch
then start while loop

and also handle thew missing case as described above