Output either the text below, or a list of lists of integers (more details below).
0
10 1
20 11 2
30 21 12 3
40 31 22 13 4
50 41 32 23 14 5
60 51 42 33 24 15 6
70 61 52 43 34 25 16 7
80 71 62 53 44 35 26 17 8
90 81 72 63 54 45 36 27 18 9
91 82 73 64 55 46 37 28 19
92 83 74 65 56 47 38 29
93 84 75 66 57 48 39
94 85 76 67 58 49
95 86 77 68 59
96 87 78 69
97 88 79
98 89
99
Rules
- If you wish, you may "one index" and replace each
n
withn+1
. In this case the output will contain the numbers 1 to 100 inclusive.
If output is text
- The single digits are right aligned in each column in the text provided, but it is fine if you wish to left align. Additionally, alignment is not required to be consistent between columns.
- Leading/trailing whitespace is permitted. Trailing spaces on each line are also permitted.
- Returning a list of lines is acceptable.
If output is numerical
- Output can be a list of lists of integers (or 2D array):
[[1], [11, 2], [21...
- Floats are fine.
- If it is not possible to have nonrectangular array in the language used, then the elements in the array that aren't within the triangle can take any value and will be ignored.
If you prefer another format, feel free to ask.
Shortest code wins.