Combinations and permutations: Difference between revisions
Content deleted Content added
Clarify task description. Promote from draft to full task status. |
|||
Line 1:
{{
{{wikipedia|Combination}} {{wikipedia|Permutation}}
;Task:
Implement the [[wp:Combination|combination]] (<sup>n</sup>C<sub>k</sub>) and [[wp:Permutation|permutation]] (<sup>n</sup>P<sub>k</sub>) operators in the target language:
* <math>^n\operatorname C_k =\binom nk = \frac{n(n-1)\ldots(n-k+1)}{k(k-1)\dots1} </math>
Line 6 ⟶ 8:
See the wikipedia articles for a more detailed description.
'''To test''', generate and print examples of:
*
*
'''See Also:'''
* [[Evaluate binomial coefficients]]
{{Template:Combinations and permutations}}
=={{header|ALGOL 68}}==
{{works with|ALGOL 68|Revision 1 - one minor extension to language used - PRAGMA READ, similar to C's #include directive.}}
|