How can i exist nosted "switch" without existing from the program (C++)?
hi guys , i need help please i wrote a c++ program for my exam test , in this program i used a nosted "switch " how can i exist from the interior "switch" and go to the exterior "switch" without exiting from the program? Simple example : while(j!=2) { cin>>j ; switch(j) { case 1 : while(d!=2) { cin>>d ; switch(d) { case 1 : cout<<"hi"<<endl; case 2 : cout<<"hello"<<endl ; } } case 2 : cout<<"money " ; } } For example i chose the first case of the interior "switch" After the result appears, I want to return to the exterior "switch "