class MainClass { static void Main() { int[] array = new int[]{1, 2, 3, 4, 5, 6}; foreach (int item in array) { System.Console.WriteLine(item); } } }