RosettaCodeData/Task/Spiral-matrix/C-sharp/spiral-matrix-4.cs
2023-07-01 13:44:08 -04:00

30 lines
370 B
C#

INPUT:-
Enter order..
5
OUTPUT:-
The Matrix of 5 x 5 Order is=>
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
INPUT:-
Enter order..
6
OUTPUT:-
The Matrix of 6 x 6 Order is=>
1 2 3 4 5 6
20 21 22 23 24 7
19 32 33 34 25 8
18 31 36 35 26 9
17 30 29 28 27 10
16 15 14 13 12 11