Пример #1
0
 static void Step1544()
 {
     Console.WriteLine();
     Console.WriteLine("1544");
     int[] in1544   = { 12, 70, 368, 10000, -11, 10001 };
     int[] outs1544 = { 23, 2430, 67841, 50004945, 0, 0 };
     for (int i = 0; i < in1544.Length; i++)
     {
         try
         {
             int result = Lab06.Task1544(in1544[i]);
             Console.WriteLine("{0} ({1})", result, outs1544[i]);
         }
         catch (Exception e)
         {
             Console.WriteLine(e.Message);
         }
     }
 }