Posted by : Unknown Sunday, 5 July 2015

class ContinueLabel 
{
     public static void main(String args[]) 
     {
         outer: for (int i=0; i<10; i++) 
         {
             for(int j=0; j<10; j++) 
             {
                  if(j > i) 
                  {
                       System.out.println();
                       continue outer;
                  }
                  System.out.print(" " + (i * j));
             }
         }
     System.out.println();
     }
}

Output:

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Translate

Popular Post

Total Pageviews

- Copyright © Learning Java Program - Powered by Blogger -