Write a function print_triangle(rows: int) that prints a right-angled triangle of asterisks (*) of height rows.
print_triangle(rows: int)
*
rows
* ** *** **** [✓] Pattern printed successfully (Time: 0.011s, Memory: 13.8 MB)