If there is an array with elements: 1,2,3,4, the program should return another array with sum of all combinations:
1 2 3 4 3 (1+2) 4 (1+3) 5 (1+4) 5 (2+3) 6 (2+4) 7 (
My idea is:
(pseudcode, I don;t know VB)
for(int i = 0; i < 4321; i++) { i mod 10 + // first from right digit (int)((i mod 100)mod 10) // second, (?) // etc // sum up all 4 digit // add to array }