Skip to content

Latest commit

 

History

History

Alphabet Rangoli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Alphabet Rangoli

You are given an integer, N. Your task is to print an alphabet rangoli of size N. (Rangoli is a form of Indian folk art based on creation of patterns.)
The center of the rangoli has the first alphabet letter a, and the boundary has the Nth alphabet letter (in alphabetical order).

Input Format
Only one line of input containing N, the size of the rangoli.

Output Format
Print the alphabet rangoli in the format explained above.

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--------