SPIRAL PRINT OF 2D ARRAY hb

https://ide.codingblocks.com/#/s/25478
https://hack.codingblocks.com/contests/c/452/440

6 4
1 2 3 4
5 6 7 8
1 2 3 4
5 6 7 8
1 2 3 4
5 6 7 8
for input like this your code doesnot works

In line 21 and 29 just change the grater than condition to greater than equal to , it just skips some elements otherwise
https://ide.codingblocks.com/#/s/25767 (Link to the correct code)