Spiral print anticlockwise

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

@qudsiya i replied you on the other doubt you posted of the same topic why have you made a new doubt?