Arrays-Wave print Column Wise

sir ide is not working so i am posting my code on this

my code of this question please tell me the problem in which case it is failing

Hello @jaankita2000,

If you wants to access m and n index.,the size of array should be:
int a[m+1][n+1];
This will create a matrix of rows and columns indexed from (0-m) and (0-n) resp.

Hope, this would help.
Give a like, if you are satisfied.