About the advanced pattern questions no 4

Sir pattern questions ko while loop use na Kar Ka for loop use karanga tho bhohat short hoga.

@Shobhan,
Okay then try using for loop.