Find minimum number of coins that make a given value: Difference between revisions
Find minimum number of coins that make a given value (view source)
Revision as of 11:28, 5 December 2023
, 5 months ago→{{header|Wren}}: Minor tidy
(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="
var denoms = [200, 100, 50, 20, 10, 5, 2, 1]
|