I am trying to make a function that chooses which coins should be used in a certain situation:
-
Kinds of Coins:
Coin worth 1
Coin worth 0.33
Coin worth 0.11
-
The amount of each coin should be limited, so in the function you should be able to declare how many coins and which kind of coin is being used. Fractaly already answered this question partially, I just don't get how I could implement a system that would also look at the amount of coins. Help is appreaciated a lot!
Thanks in advance!