Spiral print amticlokwise

it is running correctly on my side but passing testcases .help me in figure ot

Hello @ikshit9 check now
https://ide.codingblocks.com/s/447156

let me know about what changes you made by which 3 testcase are passed but the 4th one is not passing .

Int the first loop you have to print comma then space

Remove both if conditions and check then

it is passing all the testcase but i don’t understand why we remove both the if statement

check this:

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.