Spiral#5057

Spiral

1 sekondë
122,174 megabajt
Mesatare

Print a two-dimensional array of size n \times n, filled with the numbers from to n^2 in a spiral order. The spiral starts at the top-left corner and proceeds clockwise.

\InputFileOne integer (1 \leq n \leq 10).

\OutputFilePrint n^2 numbers in spiral order as a filled array.

Shembuj

Shembulli 1

Loading
Loading

Shembulli 2

Loading
Loading

Shembulli 3

Loading
Loading