Spiral print runtime error

@yyashu123 hi ,why you have taken se,sc etc variable in input ,and also size of array is very small so just take row and columns of array in input and input matrix or array and that take the above variable from 0 and loop till no of rows and columns ,the logic that you have applied is correct just make these changes it will work fine.Happy coding :slight_smile:

I have made the changes yet it is showing runtime error

@yyashu123 share link of your code and check whether you are giving input correctly or not.

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.