Rat in a maze doubt


my code is not printing the solution matrix
please check my code

Hello @sk3657860,

There are many mistakes in your program:
Some are silly and others are logical.

I have corrected all:


Refer to the comments for better understanding.

Hope, this would help.
Give alike if you are satisfied.

1 Like