Write a program to Pyramid of stars using nested for loops.

 

*

**

***

****

*****

 

Output: