- #1
ron_jay
- 81
- 0
Hey, I got an assignment to write and algorithm in C++ to print this pattern:
35 34 33 32 31 30
16 15 14 13 12 29
17 04 03 02 11 28
18 05 00 01 10 27
19 06 07 08 09 26
20 21 22 23 24 25
As you can see, the number starts near the center and spirals out... I am stumped. Any help?
35 34 33 32 31 30
16 15 14 13 12 29
17 04 03 02 11 28
18 05 00 01 10 27
19 06 07 08 09 26
20 21 22 23 24 25
As you can see, the number starts near the center and spirals out... I am stumped. Any help?