Ya your right in your assumption
printf("Enter the total :\n");
printf("Enter the number of combinations:\n");
printf("The possible combinations for total are %i",amount);
My sample output would be
Enter the total:
Enter the number of combinations:
The possible combinations for total are
1 and 5
2 and 4
I'm going to limit my total allowed entered in staring off to be 9 and combinations 2 to make it easier starting and then increase them as I go on.
Just with my is there an easy way to find the sum of a specific number or will I have to make a big massive array or something?