Why 1,0 is printing first?

code- https://ide.codingblocks.com/s/229521
my code is correct but 1,0 is printing in starting of array I can’t figure out why

@anubhavb11
i have commented your mistakes and updated it have a look -


I hope your doubt is cleared and don’t forget to mark it resolved in my doubts section :grinning: