Jump to content

McNuggets problem: Difference between revisions

added RPL
(Added solution for Pascal)
(added RPL)
Line 2,415:
</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}}==
{{trans|Go}}
1,150

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.