Evaluate binomial coefficients: Difference between revisions

Content deleted Content added
Petelomax (talk | contribs)
m →‎{{header|Phix}}: added syntax colouring the hard way
Drkameleon (talk | contribs)
Added Arturo implementation
Line 339: Line 339:
{{Out}}
{{Out}}
<pre>{10, 10}</pre>
<pre>{10, 10}</pre>

=={{header|Arturo}}==

<lang rebol>factorial: function [n]-> product 1..n
binomial: function [x,y]-> (factorial x) / (factorial y) * factorial x-y

print binomial 5 3</lang>

{{out}}

<pre>10</pre>


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==