Create a program that outputs a right-angled triangle made of stars, where both legs have a length of .
You will receive an integer (2 \leq n \leq 50), which specifies the length of each leg of the triangle.
Display a right-angled triangle using stars, with the specified dimensions.
Example 1
Example 2