print a matrix in spiral form

Given a m*n matrix ,print it in spiral form.
eg:
  1  2  3  4  5
  6  7  8  9 10
 11 12 13 14 15
 16 17 18 19 20
print it in spiral form

Comments

Popular posts from this blog