i have this problem : take a number from the user, and print a triangle with that number of rows. everything is clear except for the loop that does the actual printing, i just can't come up with anything.
number: 3
....*
..***
*****
(i used dots instead of spaces in my post)