Combinations and permutations: Difference between revisions

No edit summary
Line 3,210:
 
=={{header|rust}}==
 
{{trans|zig}}
 
<syntaxhighlight lang="rust">
Line 3,215 ⟶ 3,217:
 
{{out}}
<pre></pre>
P(12,1) = 12
P(12,2) = 132
P(12,3) = 1320
P(12,4) = 11880
P(12,5) = 95040
P(12,6) = 665280
P(12,7) = 3991680
P(12,8) = 19958400
P(12,9) = 79833600
P(12,10) = 239500800
P(12,11) = 479001600
C(60,10) = 75394027566
C(60,20) = 4191844505805495
C(60,30) = 118264581564861420
C(60,40) = 4191844505805495
C(60,50) = 75394027566
</pre>
121

edits