Knowing this helps a little, however you are gonna get no help unless you answer at least these questions: Will all the letters in the alphabet be considered? Are the values assigned to these letters permanent? Can you in any way add two or more letter? How do values get assigned to each letter? Can the combinations have more than 3 items? How many (2-letter) sets can you have?
*Other thoughts: since there are 2 items per set, the # of combinations possible are 2^n where n is the number of sets. Example 2^3 = 8.
UPDATE: I might have it now, I think you want this:
here is some pseudocode (for the program):
Code:
enter values for first set (A, B): *user enters 2 values which are assigned to A and B*
second set
third set
...
nth set
/* program now prints all the possible combinations */
your combinations are: A,C,D,.....,Y 1,2,3,.....,20
A,D,F,.....,Z 2,8,6,.....,7
and so on.
I hope this is it. I can't really make a program for you (I'm busy writing a program I have for homework), but hopefully some one else can write this for you (it's quite simple).
By the way, what is this for?