I have a problem that I can summarise as: I have the numbers 1-10 in a variable and have to keep the numbers that will sum to 20 (e.g. 3, 8 & 9) The only way I can think of doing this is transposing and then with a lot of do loops and a do until. Unfortunately when I put the problem into practice there could be over 100 numbers summing to the target number. Has anyone got any ideas?
... View more