public class Continue
{
public static void main(String[] args)
{
loop1:
for(int i=1;i<=100;i++)
{
System.out.println(" ");
if(i>10)
{
break;
}
for(int j=1;j<100;j++)
{
System.out.print("*");
if(j==i)
continue loop1;
}
}
System.out.println("Termination by break");
}
}
OUTPUT
Comments
Post a Comment