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 01:52, 9 August 2021
, 2 years ago→{{header|Julia}}: typo
mNo edit summary |
m (→{{header|Julia}}: typo) |
||
Line 42:
optimize!(model)
println("Optimized
for val in [ones, twos, fives, tens, twenties, fifties, onehundreds, twohundreds]
println("Value of ", string(val), " is ", value(val))
Line 48:
</lang>{{out}}
<pre>
Optimized
Value of ones is 1.0
Value of twos is 1.0
Line 58:
Value of twohundreds is 4.0
</pre>
=={{header|Ring}}==
|