What is wrong in this code this is showing "run error"

#include
using namespace std;
int main() {

char ch;
int c,N1,N2;
do {
cin>>ch;
switch(ch)
{
	case '+':
	cin>>N1>>N2;
	c=N1+N2;
	cout<<c;
	break;

	case '-':
	cin>>N1>>N2;
	c=N1-N2;
	cout<<c;
	break;

	case '*':
	cin>>N1>>N2;
	c=N1*N2;
	cout<<c;
	break;

	case '/':
	cin>>N1>>N2;
	c=N1/N2;
	cout<<c;
	break;

	case '%':
	cin>>N1>>N2;
	c=N1%N2;
	cout<<c;
	break;


case 'X':
case 'x':
exit(42);

default:
cout<<" 'Invalid operation. Try again.'";
 }
 } while(ch='X');


return 0;

}

kindly share the link of your code