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.) Different sizes of alphabet rangoli are shown...


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<br>creation of patterns.)<br>Different sizes of alphabet rangoli are shown below:<br>#size 3<br>----c----<br>--c-b-c--<br>c-b-a-b-c<br>--c-b-c--<br>----C----<br>#size 5<br>--------e--<br>------e-d-e---<br>----e-d-c-d-e---<br>--e-d-c-b-c-d-e--<br>e-d-c-b-a-b-c-d-e<br>--e-d-c-b-c-d-e--<br>----e-d-c-d-e--<br>------e-d-e---<br>#size 10<br>-j-<br>-j-i-j--<br>--------j-i-h-i-j-<br>---------j-i-h-g-h-i-j--<br>---------j-i-h-g-f-g-h-i-j--<br>--------j-i-h-g-f-e-f-g-h-i-j--<br>------j-i-h-g-f-e-d-e-f-g-h-i-j---<br>----j-i-h-g-f-e-d-c-d-e-f-g-h-i-j---<br>--j-i-h-g-f-e-d-c-b-c-d-e-f-g-h-i-j--<br>j-i-h-g-f-e-d-c-b-a-b-c-d-e-f-g-h-i-j<br>--j-i-h-g-f-e-d-c-b-c-d-e-f-g-h-i-j--<br>----j-i-h-g-f-e-d-c-d-e-f-g-h-i-j----<br>------j-i-h-g-f-e-d-e-f-g-h-i-j---<br>--------j-i-h-g-f-e-f-g-h-i-j-<br>--j-i-h-g-f-g-h-i-j--<br>--j-i-h-g-h-i-j-<br>--j-i-h-i-j-<br>-j-i-j--<br>-j-<br>The center of the rangoli has the first alphabet letter a, and the boundary has the Nth alphabet letter (in alphabetical order).<br>

Extracted text: 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.) Different sizes of alphabet rangoli are shown below: #size 3 ----c---- --c-b-c-- c-b-a-b-c --c-b-c-- ----C---- #size 5 --------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--- #size 10 -j- -j-i-j-- --------j-i-h-i-j- ---------j-i-h-g-h-i-j-- ---------j-i-h-g-f-g-h-i-j-- --------j-i-h-g-f-e-f-g-h-i-j-- ------j-i-h-g-f-e-d-e-f-g-h-i-j--- ----j-i-h-g-f-e-d-c-d-e-f-g-h-i-j--- --j-i-h-g-f-e-d-c-b-c-d-e-f-g-h-i-j-- j-i-h-g-f-e-d-c-b-a-b-c-d-e-f-g-h-i-j --j-i-h-g-f-e-d-c-b-c-d-e-f-g-h-i-j-- ----j-i-h-g-f-e-d-c-d-e-f-g-h-i-j---- ------j-i-h-g-f-e-d-e-f-g-h-i-j--- --------j-i-h-g-f-e-f-g-h-i-j- --j-i-h-g-f-g-h-i-j-- --j-i-h-g-h-i-j- --j-i-h-i-j- -j-i-j-- -j- The center of the rangoli has the first alphabet letter a, and the boundary has the Nth alphabet letter (in alphabetical order).

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here