Wednesday, June 10, 2015

Foreach loop on String Array in C#.

How we use foreach loop on string array.

string[] Frutes = { "Mango", "Apple", "banana" };

// Loop with the foreach keyword.
foreach (string value in Frutes )
{
Console.WriteLine(value);
}

No comments:

Post a Comment