Loop through the elements in the cars
array using the foreach
loop.
string[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
foreach (@(6) i in @(4))
{
Console.WriteLine(@(1));
}
string[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
foreach (string i in cars)
{
Console.WriteLine(i);
}