Computer Science, asked by behuraaayush, 1 year ago

Can anybody explain me these two programs?
97531
9753
975
975
97
9

Attachments:

Answers

Answered by bidisha496
1
Hey mate!

Here the loop of i iterates to control the number of characters to be printed in each line, i.e., first line contains 5 characters, second line contains 4 characters,etc.

And the j loop controls the characters that are printed, i. e, 9 7 5 3 1....etc.

Thus on running this program the above pattern is created.

I hope it helps you....
Similar questions