Question: EASY-2 Given a number write a program to print a Diamond of 2 rows using lowercase letters. aa,b,aa,b,c,b,aa,b,c,d,c,b,aa,b,c,b,aa,b,aa There is a comma (, ) after



EASY-2 Given a number write a program to print a Diamond of 2 rows using lowercase letters. aa,b,aa,b,c,b,aa,b,c,d,c,b,aa,b,c,b,aa,b,aa There is a comma (, ) after every letter except the last letter in each row. Input The input will be a single line containing an integer representing N. The output should be rows containing lowercase letters as a Diamond shown in the sample output. Explanation For example, if the given number is - Print the lowercase letters on 5 rows ( as shown in the given image. - Except for the last letter in each row, the letter in the box indicates a letter and a comma ("d,"). The output should be, aa,b,aa,b,c,b,aa,b,aa Sample Input 1 Sample Output 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
