Combinations with repetitions: Difference between revisions
Content added Content deleted
m (→{{header|Sidef}}: updated code) |
|||
Line 2,393: | Line 2,393: | ||
For i = 0 To n - 1: Read.s dougnut(i): Next |
For i = 0 To n - 1: Read.s dougnut(i): Next |
||
PrintN("Combinations of " + Str( |
PrintN("Combinations of " + Str(n) + " dougnut types taken " + Str(k) + " at a time with repetitions.") |
||
combinationCount = 0 |
combinationCount = 0 |
||
Repeat |
Repeat |
||
Line 2,413: | Line 2,413: | ||
{{out}} |
{{out}} |
||
<pre>Combinations of |
<pre>Combinations of 3 dougnut types taken 2 at a time with repetitions. |
||
iced + iced |
iced + iced |
||
iced + jam |
iced + jam |