private static void subset_enum_test() //****************************************************************************80 // // Purpose: // // SUBSET_ENUM_TEST tests SUBSET_ENUM. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 27 November 2015 // // Author: // // John Burkardt // { int n; Console.WriteLine(""); Console.WriteLine("SUBSET_ENUM_TEST"); Console.WriteLine(" SUBSET_ENUM enumerates subsets of a set of N items."); Console.WriteLine(""); for (n = 0; n <= 10; n++) { int subset_num = Subset.subset_enum(n); Console.WriteLine(" " + n.ToString().PadLeft(2) + " " + subset_num.ToString().PadLeft(6) + ""); } }