Write a program to generate a pyramid as shown below.

a) Write a program to generate a pyramid as shown below. The program should take the number
of rows as an input from the user.



Leave a Reply