Daniele Mercanti <[EMAIL PROTECTED]> wrote: > I have 5 variables (a,b,c,d,e) > and every variable can be either TRUE (1) > or FALSE (0). > > I NEED A LIST OF ALL THE POSSIBLE COMBINATION THAT I > CAN ACHIEVE
Hi Daniele, Think bitwise. The numbers from 0 to 31 contain every combination of the bits 0 and 1: 00000, 00001, 00010, 00011 right up to 11111. Cheers, James [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
