Count the coins: Difference between revisions
no edit summary
Drkameleon (talk | contribs) No edit summary |
|||
Line 277:
=={{header|Arturo}}==
ways: map 0..amount+1 [x]-> 0
▲<lang arturo>changes: @(amount coins){
ways\0:
loop coins
loop coin..amount
set ways
▲ }
return ways.[amount]▼
print [changes 100 #(1 5 10 25)]▼
]
print [changes 100000 #(1 5 10 25 50 100)]</lang>▼
=={{header|AutoHotkey}}==
|