Lets say I have nine two sided coins. How would I go about finding EVERY possible combination that could come up, and displaying it.
Note, when I say every, I mean that order of them matters, so 'HT' would be different than 'TH', even though they each contain 1 head and 1 tail.
And every combination must have all 9 coins in it.