Spiral print anticlockwise

sir what is the mistake in my code it is not taking any input and returning a garbage value

@qudsiya corrected and commented


dont forget to hit like and mark resolved if cleared :smiley: