Alice is studying symbolic graphics and wants to draw a right triangle made of stars with legs equal to 5. Write a
triangle() function that will display the right triangle drawn in the example output.< br />
Examples
| # |
Input |
Output |
| 1 |
|
*
**
***
****
*****
|