Code for spiral n wave for 2d arrays

kindly pinpoint the mistakes in the spiral and wave print of the 2d arrays.

https://ide.codingblocks.com/#/s/13646

Hey Satyam ! in ur spiral printing function, you have written wrong condition for the case when you are printing from right buttom to top and you also made one mistake while running for loop in which u are incrementing i instead of decrementing.in line 70. Fix these errors first, if you find difficulty further then just go through this
code https://ide.codingblocks.com/#/s/13666 .

thank you! i got it now :slight_smile: