/*                            The Stars Program
			           Arup Guha
				   2/19/99
				Edited: 7/9/03, 7/14/06

Description: The program draws stars in a right triangle design based upon
             the number of rows the user desires in the triangle.
*/

import java.util.*;

public class Stars {

    public static void main(String args[]) {

      Scanner stdin = new Scanner(System.in);

      // Get user input.	
      System.out.println("How many stars do you want for the bottom row of your triangle?"); 
      int numstars = stdin.nextInt();
     
      // Loop through each row.
      int linecounter = 1;
      while (linecounter <= numstars) {
	 
        // Print out one line of stars, based on the current row.
	int starcounter = 1;
	while (starcounter <= linecounter) {
	  System.out.print("*");
	  starcounter++;
	}
	    
        // Advance to the next line of output.
	System.out.println();
	linecounter++;
      }
    }
}
