Write a method print_triangle which takes at its input an integer representing the number of rows to print, and prints out a right triangle consisting of * characters, one line per row.
For example, print_triangle(5) should print out:
for j in 1..rows do
for i in 1..j do
print "*" * 1