public static void ExitOutput(CircleOfChildren circle, int syllablesCount, int childrenCount = 0) { foreach (var child in circle.GetChildrenInOrder(syllablesCount, childrenCount)) { Console.Write(child + " "); } }
static void Main(string[] args) { var circle = new CircleOfChildren(new string[] { "Halya1", "Olya2", "Ira3", "Andriy4", "Josh5" }); OutputUtils.ExitOutput(circle, 3); }