using System;
public class ForEachCsharpProgram
{
public static void Main()
string[] names = {"John","Sam","Mick","jack"};
Console.WriteLine("Elements in the array are:");
foreach (string str in names)
Console.WriteLine(str);
}