Ya your right in your assumption

Code:

#include <stdio.h>
#include <math.h>
int total;
int numbers;
int calculate(x,y);
int amount;
int main()
{
printf("Enter the total :\n");
scanf("%i", &total);
printf("Enter the number of combinations:\n");
scanf("%i", &numbers);
amount=calculate(total,numbers);
printf("The possible combinations for total are %i",amount);
}
int calculate(x,y)
{
}

////////////////////////////////////

My sample output would be

Enter the total:

6

Enter the number of combinations:

2

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?