RosettaCodeData/Task/Loops-Foreach/C-sharp/loops-foreach.cs

7 lines
118 B
C#

string[] things = {"Apple", "Banana", "Coconut"};
foreach (string thing in things)
{
Console.WriteLine(thing);
}