Problem in code

i wrote the code as instructed int the video and its not working for n*n case.

actually for n*n when n is even

I have edited your code… Try to submit it now…

now its not working for other cases like for 3,5 array or 5,3 array.

Tushar, pls try to submit the above code… I checked it… It is working perfectly