in reply to Dynamically assigning number of for loops?

Thanks guys, for your suggestions. I used google but did not get the answer. Well, this is not part of homework or anything. I am just on self learning..:)

I thought of solving it but couldn't arrive at a solution. The problem is that the number of variables in "First Set" may change from one case to the other, and my function should work for all such cases. I tried to use "for loops", but they wouldn't work because the number of "for loops" may change from cases to case, depending on the number of variables "First Set" has.

I am asking for suggestions rather than the code to solve this problem. This way I can write and test code myself and thereby learn more.

Cheers, Raj

  • Comment on Re: Dynamically assigning number of for loops?