using System;
public class Program
{
public static void Main()
// Example 1: going through an array of numbers
int[] fibarray = new int[] { 0, 1, 1, 2, 3, 5, 8, 13 };
foreach (int element in fibarray)
Console.WriteLine(element);
}
// Example 2: going through an array of strings
string[] pets = { "dog", "cat", "bird" };
foreach (string element in pets)