Showing wrong result for row=2 and col=3

Link to code-> https://ide.codingblocks.com/s/624372
Wrong result for input 2 3

Hi,
I have corrected ur code https://ide.codingblocks.com/s/624399

i hope it is clear now??

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.

yes would be thankful if you would let me know where my code was wrong

the code is working fine on the link u shared…