Hi Team,
  I am in need of a logic for Permutation & Combination

1. I have an array of value with VM seperation.
     ARRAY = 'A':VM:'B':VM':'C'

2.I want to display the combination of values in the array like

ABC
ACB
BCA
BAC
CAB
CBA

3.Total values in the array can have infinite values.

    if there are 4 values in the array, then the combination must be
24.(4!)

    if there are 5 values in the array, then the combination must be
120.(5!)

Please help me with this logic.

thanks
kamaraj.s

--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to