Print pattern using spiral print techniquw


question is commented out in the code
what is wrong ? it is giving run time error?

Hi @chahatkumar
Line No 43. It should i-- instead of i++.

okay thanks
but after correcting line no 43, the output is incorrect . pls help

@chahatkumar
There were 2 or 3 changes required. I have made those changes and marked them in your code. Please refer to it and let me know if you have any doubts regarding it.
Updated Code - https://ide.codingblocks.com/s/99845

1 Like

okay thanks :slight_smile: