Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Nth/Arturo/nth.arturo
Normal file
14
Task/Nth/Arturo/nth.arturo
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
suffixes: ["th" "st" "nd" "rd" "th" "th" "th" "th" "th" "th"]
|
||||
|
||||
nth: function [n][
|
||||
if? or? 100 >= n%100
|
||||
20 < n%100
|
||||
-> (to :string n) ++ "'" ++ suffixes\[n%10]
|
||||
else -> (to :string n) ++ "'th"
|
||||
]
|
||||
|
||||
loop range.step:250 0 1000 'j [
|
||||
loop j..j+24 'i ->
|
||||
prints (nth i)++" "
|
||||
print ""
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue