How to make a equilateral triangle using nested for loop? The thing that I can do is just a one sided triangle

*
**
***
****

like that , but i need a triangle.

----------*