1.Take input of number of rows.
2.create a count variable and initialize it to 0.
3.For each row
-Number of elements is equal to row number
the 1st row has 1 element 2nd has 2 and so on…
-for each element print character 'A' + count ('A' + 1 = 'B' ; 'A' + 3 = 'D').
printf("Enter number of rowsn");
// printing each row
printf("%c ",'A' + cnt++);
Next Post: Pattern Printing 23
Category: Printing Pattern
Previous Post: Pattern Printing 21