i need help with creating a letter pyramid usin c.
this is what the basic pyramid should look like.
the - are spaces in front of the letters.
example 1
Type a single lowercase letter and press enter: 3
That is not a letter, enter a lowercase letter:=
That is not a letter, enter a lowercase letter:!
That is not a letter, enter a lowercase letter:e
----A
---ABA
--ABCBA
-ABCDCBA
ABCDEDCBA
example 2
Type a single lowercase letter and press enter: p
---------------A
--------------ABA
-------------ABCBA
------------ABCDCBA
-----------ABCDEDCBA
----------ABCDEFEDCBA
---------ABCDEFGFEDCBA
--------ABCDEFGHGFEDCBA
-------ABCDEFGHIHGFEDCBA
------ABCDEFGHIJIHGFEDCBA
-----ABCDEFGHIJKJIHGFEDCBA
----ABCDEFGHIJKLKJIHGFEDCBA
---ABCDEFGHIJKLMLKJIHGFEDCBA
--ABCDEFGHIJKLMNMLKJIHGFEDCBA
-ABCDEFGHIJKLMNONMLKJIHGFEDCBA
ABCDEFGHIJKLMNOPONMLKJIHGFEDCBA