static void Step2324() { Console.WriteLine(); Console.WriteLine("2324"); String[] in2324 = { "1 2 3 4 5 0", "0", "-1 -2 0", "1 1 1 1 1 1 1 1 1 1 1 1 0" }; int[] out2324 = { 15, 0, -3, 12 }; for (int i = 0; i < in2324.Length; i++) { int result = Lab06.task2324(in2324[i]); Console.WriteLine("{0} ({1})", result, out2324[i]); } }