static void Step8518() { Console.WriteLine(); Console.WriteLine("8518"); String out8518 = "a+\nb\nc\nd\ne\nf\ng\nh\n\n" + "a\nb\nc\nd+\ne\nf\ng\nh\n\n" + "a\nb\nc\nd\ne\nf\ng\nh+\n\n" + "a\nb\nc\nd\ne\nf\ng\nh\n\n"; StringBuilder sb = new StringBuilder(); Lab06.task8518(sb, "a").Append("\n"); Lab06.task8518(sb, "d").Append("\n"); Lab06.task8518(sb, "h").Append("\n"); Lab06.task8518(sb, "i").Append("\n"); if (out8518.Equals(sb.ToString())) { Console.WriteLine("Задача решена верно"); } else { sb.Insert(0, "Неверно. Результат:\n"); Console.WriteLine(sb.ToString()); } }