/*
     1
    2.
   3..
  4...
 5....
6.....
*/

public class NestedForLoops6
{
   public static final int SIZE = 9;

   public static void main(String[] args)
   {
      for (int i = 1; i <= SIZE; i++)
      {
         for (int j = 1; j <= SIZE-i; j++)
         {
            System.out.print(" ");
         }
         System.out.print(i);
         for (int j = 1; j <= i-1; j++)
         {
            System.out.print(".");
         }
         System.out.println();
      }
   }
}
/*
Change the output pattern from this
     1
    2.
   3..
  4...
 5....
6.....
to this
1.....
 2....
  3...
   4..
    5.
     6
*/
