September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
15
Task/Multifactorial/Phix/multifactorial.phix
Normal file
15
Task/Multifactorial/Phix/multifactorial.phix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
function multifactorial(integer n, integer order)
|
||||
atom res = 1
|
||||
if n>0 then
|
||||
res = n*multifactorial(n-order,order)
|
||||
end if
|
||||
return res
|
||||
end function
|
||||
|
||||
sequence s = repeat(0,10)
|
||||
for i=1 to 5 do
|
||||
for j=1 to 10 do
|
||||
s[j] = multifactorial(j,i)
|
||||
end for
|
||||
?s
|
||||
end for
|
||||
Loading…
Add table
Add a link
Reference in a new issue