Catalan numbers/Pascal's triangle: Difference between revisions
Content deleted Content added
m Ran code through zig fmt. |
|||
Line 2,220:
var n: u32 = 1;
while (n <= 15) : (n += 1) {
const row = binomial(n * 2).?;
try stdout.print("{d:2} {d:8}\n", .{ n, row[n] - row[n + 1] });
}
}
Line 2,275:
15 9694845
</pre>
=={{header|zkl}}==
{{trans|PARI/GP}} using binomial coefficients.
|