Catalan numbers/Pascal's triangle: Difference between revisions

m
Added a "\n" at the end of the line.
(Added solution for EDSAC.)
m (Added a "\n" at the end of the line.)
Line 1,314:
t[i+1] = t[i]
for j in countdown(i+1, 1): t[j] += t[j-1]
stdout.write t[i+1] - t[i], " "</lang>
stdout.write '\n'</lang>
{{Out}}
<pre>1 2 5 14 42 132 429 1430 4862 16796 58786 208012 742900 2674440 9694845 </pre>
Anonymous user