how to break outer loop from switch case
- by Ravisha
I have below code ,
enter code here
for(int i=0;i<15;i++)
{
switch(i)
{
case 6:
break;
case 7:
//Want to break the outer loop
}
}
enter code here
Is there a way to break the loop inside case statement?
I know of one way is to use labels and goto .