Posted by : Unknown Sunday, 5 July 2015

class Nested 
{
     public static void main(String args[]) 
     {
        int i, j;
        for(i=0; i<10; i++) 
        {
             for(j=i; j<10; j++)
             System.out.print(".");
             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 -