using System;
using System.Collections.Generic;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
List<int> list = new List<int>();
list.Add(1);
list.Add(2);
list.Add(3);
list.Add(4);
foreach (int element in list) {
Console.WriteLine(element);
}
}
}
}
/*
run:
1
2
3
4
*/