static void Main(string[] args) { int[] a = { 1, 2 }; float b = 0.0f; foreach (int value in a) { Console.WriteLine(value); } Console.ReadKey(); }