Posted: 8/29/2011
1 2 3
4 5 6
7 8 9
hey guys the above is a 3*3 matrix and now i need to print the value on the following directions... 1-2-4-7-5-3-6-9-8..
pls suggest the code or logic for this problem... and also give the code for n*n matrix if possible..