print("How many rows to output? ", end="") 
n = int(input()) # output this many rows 

for i in range(0, n): # outer loop 
  for j in range(0, i + 1): # inner loop 
    print("*", end="") 
  print()