Find minimum number of coins that make a given value: Difference between revisions

m
(added RPL)
m (→‎{{header|Wren}}: Minor tidy)
Line 1,507:
{{libheader|Wren-fmt}}
As there is, apparently, an unlimited supply of coins of each denomination, it follows that any amount can be made up.
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
 
var denoms = [200, 100, 50, 20, 10, 5, 2, 1]
9,476

edits