I didnt understand the column increment

colum increment is n ot clear

hi @satyamsingla
se the no of time some value has to be printed in a row is equal to no of row number
for n = 1 u print 1
for n = 2 ( 2 values are printed ) 2 3
for n =3 ( 2 values printed) 4 5 6

so the the while loop
while col <= row
print val
val = val+1
col = col+1

col+ 1 is required so that the while can terminate

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.