Expected behavior is to take the name as input and run the while loop again but instead it just goes to the next line and does nothing.
#include <iostream>
using namespace std;
int main()
{
int ch,mb;
bool y=true;
char name;
cout<<"Enter 1,2 or 3 : ";
do{
cin>>ch;
switch(ch)
{
case 1:
cout<<" \n\t 1.ENTER CUSTOMER NAME :";
cin>>name;
continue;
case 2:
cout<<" \n\t 2.ENTER MOBILE NUMBER:";
cin>>mb;
continue;
case 3:
y=false;
}
}while(y!=false);
}