class MainClass { public static void Main() { int [] myValues = {2, 4, 3, 5, 1}; foreach (int counter in myValues) { System.Console.WriteLine("counter = " + counter); } } }
counter = 2 counter = 4 counter = 3 counter = 5 counter = 1