Hi

I am looking for trifecta permutation combination code.
I mean if i give any number like 1 5 6 or 8 9 7 4 3

the program should print all possible combination in trifecta format
so if i give 3 numbers it should print 6 combinatin if i give 4 numbers it should give 24 combination n so on.

Please help
Thanks