Count the coins: Difference between revisions

Added Coco.
(Updated third D entry)
(Added Coco.)
Line 314:
99341140660285639188927260001
992198221207406412424859964272600001</lang>
 
=={{header|Coco}}==
 
{{trans|Python}}
 
<lang coco>changes = (amount, coins) ->
ways = [1].concat [0] * amount
for coin of coins
for j from coin to amount
ways[j] += ways[j - coin]
ways[amount]
console.log changes 100, [1 5 10 25]</lang>
 
=={{header|Common Lisp}}==
845

edits