Categories
Development

calculate n number of possibilities with array values

I have three arrays A[]={“a”,”b”},B[]={“c”,”d”},C[]={“e”,”f”}. Output={“ace”},{“acf”},{“ade”},{“adf”},{“bce”},{“bcf”},{“bde”},{“bdf”} By using these three arrays i have to calculate the possibilities. Similarly i want to calculate the possibilities for n number of arrays.