greatest number of numbers that sums to n
Posted on 2004-08-07
Hi. I am trying to make a program that takes in a list box (lets call it list1) with a bunch of items in it that have a numerical value. Next, I have 4 other numbers in a different list. The point of this is to take a number from the list2 and display all the possibilities in which when you sum up that first card with any number of cards from list1, the total is exactly 11.
Can anyone make me a function that does this? Thank you.