public class NestedForLoops5
{
   public static final int SIZE = 6;

   public static void main(String[] args)
   {
      for (int i = 1; i <= SIZE; i++)
      {
         for (int j = 1; j <= SIZE-i; j++)
         {
            System.out.print(" ");
         }
         for (int j = 1; j <= i; j++)
         {
            System.out.print("*");
         }
         System.out.println();
      }
   }
}
/*
Try changing the triangle from this
     *
    **
   ***
  ****
 *****
******
to this,
******
 *****
  ****
   ***
    **
     *

*/