using System;
public class NestedSwitchCaseProgram
{
public static void Main()
int MainVal = 5;
switch (MainVal)
case 5:
Console.WriteLine(5);
//another siwtch
switch (MainVal - 1)
case 4:
Console.WriteLine(4);
// third switch case
switch (MainVal - 2)
case 3:
Console.WriteLine(3);
break;
}
case 8:
Console.WriteLine(8);
case 9:
Console.WriteLine(9);
default:
Console.WriteLine(100);