how to print
43
12
for 2X2 matrix and
543
612
789
for a 3X3 matrix
and like the pattern continues the matrix shd hv the numbers of its square
for example as the user gives in 4 and 4
the output should be
16 15 14 13
5 4 3 12
6 1 2 11
7 8 9 10
Thanks in advance
Vaibhav
43
12
for 2X2 matrix and
543
612
789
for a 3X3 matrix
and like the pattern continues the matrix shd hv the numbers of its square
for example as the user gives in 4 and 4
the output should be
16 15 14 13
5 4 3 12
6 1 2 11
7 8 9 10
Thanks in advance
Vaibhav
Comment