Hi guys...Im trying to figure out an algorithm for calculating the various combinations of n elements...Iv come to the conclusion that its gotta be a recursive call inside a for loop...and thats where Im stuck...need help here

what I need
Combinat(ABC)=

ABC
ACB
BAC
BCA
CAB
CBA