using System;
using System.Collections.Generic;
class Program
{
static void Main()
{
int[] arr = {1, 2, 3, 4, 5};
List<int> lst = new List<int>() {8, 9, 0};
Print(arr);
Console.WriteLine();
Print(lst);
}
static void Print(IEnumerable<int> values) {
foreach (int n in values) {
Console.WriteLine(n);
}
}
}
/*
run:
1
2
3
4
5
8
9
0
*/