// Allison Obourn
// CS 141, Winter 2021
// Lecture 3

// prints a triangle of stars starting wide and getting narrower
// along the left side. The triangle is made up of dots with a number at the 
// end of each line. The number starts at one and increases one every line

public class Figure {
   public static void main(String[] args) {
   
      for(int line = 1; line <= 5; line++) {
         for(int i = 1; i <= -1 * line + 5; i++) {
            System.out.print(".");
         }
         System.out.println(line);
      }
      
   }
}