admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Alphabetic patterns:Given a positive integer 'n' less than or equal to 26, you are required to print the below pattern   


Sample Input: 5 
 
Sample Output : 
--------e-------- 
------e-d-e------ 
----e-d-c-d-e---- 
--e-d-c-b-c-d-e-- 
e-d-c-b-a-b-c-d-e 
--e-d-c-b-c-d-e-- 
----e-d-c-d-e---- 
------e-d-e------ 
--------e-------- 
 
Sample Input  : 3 
 
Sample Output : 
----c---- 
--c-b-c-- 
c-b-a-b-c 
--c-b-c-- 
----c----

Published By : Vaibhav G. Khetal
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin