I have this situation that I need to let users define decisions based on the number of given conditions. For example my program needs to automatically generate a matrix as b
Outputting the matrix is rather trivial:
int conditions = 3; for (int c = 0; c < conditions; c++) { Console.WriteLine( "Condition {0} : {1}", (char)('A' + c), new String( Enumerable.Range(0, (1 << conditions)) .Select(n => "TF"[(n >> c) & 1]) .ToArray() ) ); }
So, what do you want to do with it?