Anonymous user
Left factorials: Difference between revisions
Updated D entry
(Initial implementation in PL/I) |
(Updated D entry) |
||
Line 99:
<lang d>import std.stdio, std.bigint, std.range, std.algorithm, std.conv;
BigInt leftFact(in uint n) pure
BigInt result = 0, factorial = 1;
foreach (immutable i; 1 .. n + 1) {
|