Evaluate binomial coefficients: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: changed/added comments and whitespace, changed indentations.)
Line 972: Line 972:
k == 0 && return 1
k == 0 && return 1
binom(n-1,k-1) + binom (n-1,k) #recursive call
(n * binom(n - 1, k - 1)) ÷ k #recursive call
end
end