Write a single loop (using c) to print the following: (In each pass you should print only one character):
aA
aabC
aaabb*E
aaaabbb**G
aaaaabbbb***I
aaaaaabbbbb****K
here is the image of the pattern
The problem is I have to do the whole thing in one single loop and can’t use an array. I can’t figure out the approach of doing it.
New contributor
discard is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3