Write a program to pyramid of numbers using for loops.

 

Output: