McNuggets problem: Difference between revisions
Content added Content deleted
(Added solution for Pascal) |
(added RPL) |
||
Line 2,415: | Line 2,415: | ||
</pre> |
</pre> |
||
{{trans|Go}} |
|||
« → limit |
|||
« { } limit 1 + + 0 CON |
|||
0 limit '''FOR''' s |
|||
s limit '''FOR''' n |
|||
n limit '''FOR''' t |
|||
limit t - 1 + 1 PUT |
|||
20 '''STEP''' |
|||
9 '''STEP''' |
|||
6 '''STEP''' |
|||
ARRY→ 1 GET →LIST |
|||
0 POS limit SWAP - 1 + |
|||
» » '<span style="color:blue">MCNUGTS</span>' STO |
|||
100 <span style="color:blue">MCNUGTS</span> |
|||
{{out}} |
|||
<pre> |
|||
1: 43 |
|||
</pre> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
{{trans|Go}} |
{{trans|Go}} |