Doubt in a pattern

code- https://ide.codingblocks.com/#/s/28492
question- https://hack.codingblocks.com/contests/c/509/49
why am I getting wrong answer

I think the give pattern is for N=5 and not N=9.

I have made a small change and commented it and it worked.
https://ide.codingblocks.com/#/s/28541

oooo yes…hnji bhaiya thank u

1 Like