Arrays wave print column wise

Please check my code and help me why the answer is coming wrong.

Hi @hrithik.anand02
Please share your code ide so that i can have a look.

Hi @hrithik.anand02
There is a small mistake. At line number 26 of your code i should begin with r-1 instead of 3.

Here is your corrected code :

Thank you soo much for helping