- 2
Challenge ...
*FRIDAY CHALLENGE* : write a code that gets as input a positive number N > 1 and prints a N x N CLOCKWISE-SPIRAL-SQUARE Example: if N=3 then the Clockwise Spiral Square looks like this: 1 2 3 8 9 4 7 6 5 if N=5 then the Clockwise Spiral Square looks like this: 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 (In this example the columns don't align perfectly, but in the output of your code the columns should left-align) -Start at top left
1 Answer
+ 1
https://code.sololearn.com/cOHDoPuSDPao/#cpp
How bout this??