Q : Is there any way to avoid using multiple for loop ?
For example :
I have three numbers say 1, 2 and 3
1 represents A, B, C, D, E
2 represents F, G, H, I,
3 represents K, L, M, N,
I want to produce an output combination of these options like
In this example I have 3 numbers but practically I have 10 Numbers.
What I have done is looped in 10 for loops and getting the result inside inner most loop.
Working fine ! but it looks ugly
Again I have a problem, If user asks for comination of 1,2,3 and 6,7,8,9 ( skipped 4, 5)
How should I proceed ???
Pl let me know if U R not clear with the question.