Ejemplo n.º 1
0
 static void Step7585()
 {
     Console.WriteLine();
     Console.WriteLine("7585");
     int[]    in7585  = { 10, 15, 20, 9, 21 };
     String[] out7585 =
     {
         "10+\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n",
         "10\n11\n12\n13\n14\n15+\n16\n17\n18\n19\n20\n",
         "10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20+\n",
         "10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n",
         "10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n"
     };
     for (int i = 0; i < in7585.Length; i++)
     {
         StringBuilder result = Lab06.task7585(new StringBuilder(), in7585[i]);
         if (out7585[i].Equals(result.ToString()))
         {
             Console.WriteLine("Задача решена верно");
         }
         else
         {
             result.Insert(0, "Неверно. Результат:\n");
             Console.WriteLine(result);
         }
     }
 }