RosettaCodeData/Task/Multifactorial/11l/multifactorial-1.11l

6 lines
128 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
F multifact(n, d)
R product((n .< 1).step(-d))
L(d) 1..5
print(Degree d: (1..10).map(n -> multifact(n, @d)))