static void Main(string[] args) { model model = new model(); model.Print(); Console.WriteLine(model.A()); Console.WriteLine($"\nB:"); foreach (var e in model.B()) { Console.WriteLine(e); } Console.ReadLine(); Console.Clear(); model.Print(); model.C(); model.Print(); Console.ReadLine(); model.D(); model.Print(); Console.ReadLine(); }