Last number in spiral print is not printed

Please help I don’t know why the last number is not printed

hi @numanshaikh25
refer this -->

But i want to know where was the problem in my code i did not understood that

@numanshaikh25
image
these if conditions were missing in ur code…
corrected code -->

okay Thanks understood

1 Like

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.