Input
Output
#include <iostream> using namespace std; int main(){ int a = 1, b = 2; switch(a) { case 1: cout << "The value of a in switch: "<< a << endl; case 2: switch(b) { case 2: cout << "The value of b in nested switch:"<< b << endl; } break; default: cout << "value is not 1, 2 "; } return 0; }