Run Error (Spiral print Column wise)

How can i remove run error in my code?

please share your code.

please raise your doubt again with the code.
Thanks.