Ive been trying to make a program to divide up numbers into a specific set of numbers for example - I input the number 131.75 into the script and it delivers a set of numbers - {45, 25, 10, 5, 2.5, 1.5, .75, .50, .25} it can only use one number twice and the set of numbers it outputs has to be equal to 131.75 Example - Input 129.5 Output {45, 25, 25, 10, 10, 5, 5, 1.5, 1.5, .5, .5, .25, .25} It would print that I've been stuck on this for awhile anything would help even just a hint of what direction to head for to make it.
COMMUNITY QUESTION
How to make a program to divide up a number into specific number sets?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
