2-d array problem spiral array

sir, in this i wrote correct code but I do not know desire output nhhhi aa rhhha shhi could you check and tell my error.

hi @manishayadav1360_c0939b9a17f994ff,
your code was correct just a small mistake instead of ec++ u should write ec–, here’s your updated code https://ide.codingblocks.com/s/658502

hope this solves the doubt :slight_smile:

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.

@manishayadav1360_c0939b9a17f994ff is the doubt clear?

then mark it as resolved please