import java.util.*;
class nswitch
{
public static void main (String arg[])
{
Scanner in = new Scanner (System.in);
int a,b;
a=3;
b=2;
switch (a)
{
case 1:
switch (b)
{
case 1:
System.out.println ("\n\t Inner One ");
break;
case 2:
System.out.println ("\n\t Inner Two ");
default:
System.out.println ("\n\t Inner :: Invalid ");
}
case 2:
System.out.println ("\n\t Outer Two ");
break;
case 3:
System.out.println ("\n\t Outer Three ");
break;
default:
System.out.println ("\n\t Outer :: Invalid ");
}
}
}
This comment has been removed by the author.
ReplyDelete