using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[] arr = new int[7] {1, 2, 3, 4, 5, 6, 7};
// option 1
Array.ForEach(arr, x => Console.WriteLine(x));
// option 2
Console.WriteLine("arr: {0}", string.Join(", ", arr));
}
}
}
/*
run:
1
2
3
4
5
6
7
arr: 1, 2, 3, 4, 5, 6, 7
*/