Jump to content

Left factorials: Difference between revisions

m
no edit summary
(Added Rust)
mNo edit summary
Line 1,605:
left ! of 10000 ───► 35656 digits
</pre>
 
=={{header|Ring}}==
<lang ring>
a = leftFact(0,10,1)
see "" + a + nl
func leftFact f,t,s
see "------ From " + f + " --To -> " + t +" Step " + s + " -------" + nl
for i = f to t step s
leftFact = 1
fct = 1
for j = 1 to i - 1
fct = fct * j
leftFact = leftFact + fct
next
if i >= 1000 see "" + i + " " + len(string(leftFact)) + " digits" + nl
else see "" + i + " " + leftFact + nl ok
next
</lang>
 
=={{header|Ruby}}==
2,468

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.