Spiral print topic

kindly help me in correcting this code

Hey @mridulpant
Please refer to this : https://ide.codingblocks.com/s/378496

I removed comment of urs and added mine
Added 2 if condition and for rest of the code just swapped some statements before :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.