Print number in diagonal format in matrix

Hi.

I tried to print number in matrix in following format but could not reach the solution .. does anyone have idea

Ex.
I have matrix a[3][]3] = { 1 , 2 ,3
4 , 5 ,6
7 , 8 ,9
}

it should print like .
1
4 2
7 5 3
8 6
9






Topic archived. No new replies allowed.