Catalan numbers/Pascal's triangle: Difference between revisions

added Arturo
m (Automated syntax highlighting fixup (second round - minor fixes))
(added Arturo)
Line 281:
1 2 5 14 42 132 429 1430 4862 16796 58786 208012 742900 2674440 9694845
</pre>
=={{header|Arturo}}==
 
<syntaxhighlight lang="arturo">n: 15
t: new array.of:n+2 0
 
t\[1]: 1
 
loop 1..n 'i [
loop i..1 'j -> t\[j]: t\[j] + t\[j-1]
t\[i+1]: t\[i]
loop (i+1)..1 'j -> t\[j]: t\[j] + t\[j-1]
prints t\[i+1] - t\[i]
prints " "
]
print ""</syntaxhighlight>
 
{{out}}
 
<pre>1 2 5 14 42 132 429 1430 4862 16796 58786 208012 742900 2674440 9694845</pre>
 
=={{header|AutoHotkey}}==
{{works with|AutoHotkey_L}}
Line 317 ⟶ 337:
1 2 5 14 42 132 429 1430 4862 16796 58786 208012 742900 2674440 9694845
</pre>
 
=={{header|AWK}}==
<syntaxhighlight lang="awk">
1,532

edits