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