Left factorials: Difference between revisions
→{{header|PowerShell}}
Line 1,196:
$digits = [BigInt]::Log10($(left-factorial $i))
$digits = [Math]::Floor($digits) + 1
if($i -
else {"!$i has $digits digit"}
}
|
Line 1,196:
$digits = [BigInt]::Log10($(left-factorial $i))
$digits = [Math]::Floor($digits) + 1
if($i -
else {"!$i has $digits digit"}
}
|
edits