posted 11 years ago
im making a program that will show the number of possible combination of
what the user inputs and number of takes at a time...
i already finished making showing the number of possible combination but
i am having problem in showing the actual items of combination of the inputted...
to make it more easy to understand...
for example
the user input " apple banana cherry mango orange"
number of takes at a time: " 3 "
the output will show the formula and computation and the total number of combinations:
for example the answer is " 10 "
now here comes the problem.
i need to show the possible combinations of the items if the total combinations is less or equal to 10
apple banana cherry mango orange by taking 3 at a time
example
apple banana cherry
apple banana mango
apple banana orange
apple cherry mango
apple cherry orange
apple mango orange
banana cherry mango
banana cherry orange
banana mango orange
cherry mango orange
thank you in advance guys