Write a program for Nested Switch.

 

 

Output: