Pattern Problem, column should be incremented

In solution, where even row code starts, first bhaiya did cout<<1 for col variable 1, then he moved on to print zeroes but didn’t incremented column. Can you tell I am wrong or right?

yes column is not incremented because it is not needed
bhaiya first print 1
and then print n-2 zeroes
and then at last print 1

col is just a variable it will be increment inside loop only

i hope you understand the point
if not let me know

thanks, i just understood after asking the doubt

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.