Create a program that outputs an inverted right-angled triangle composed of asterisks, where both legs have a length of .
You will receive an integer (2 \leq n \leq 50), representing the length of the triangle's legs.
Display an inverted right-angled triangle of asterisks with the specified dimensions.
Example 1
Example 2