Input
Output
#include <stdio.h> void main () { int a = 1, b = 2; switch(a) { case 1: printf("The value of a in switch: %d\n",a); case 2: switch(b) { case 2: printf("The value of b in nested switch: %d\n",b); } break; default: printf("value is not 1, 2 "); } }