Hello pls tell the error in my code

my code is partially correct how to write fully correct ans

hi @prabhsim2627_d56bfdda3da10bc9,
Have a look at this code–>

#include<iostream>
using namespace std;
int main() {
	int a,b,c;
	char ch;
	do
	{
		cin>>ch;
        if((ch=='X')||(ch=='x'))
        {
            break;
        }
        else if(ch=='+' || ch=='-' || ch=='*' || ch=='/' || ch=='%')
        {
			cin>>a>>b;
		switch(ch)
		{
			case '+':c=a+b;
			break;
			case '-':c=a-b;
			break;
			case '*':c=a*b;
			break;
			case '/':c=a/b;
			break;