Simple zig-zag numeric spiral
I propose the following problem. Take the number of columns and a series of numbers between 10 and 99 as input and create a zig-zag pattern on console output. The output should be centered so that it fills an 80 char wide screen. For example,
prompt>ZigZag 3 12 45 78 48 34 67 90 23 72 67 34 56 17 32 88
will give the following output:
12
45
78
48
34
67
90
23
72
67
34
56
17
32
88
———————————————————————————
I will try to write C# code to solve this problem below within a day or two.