using System;
using System.Collections.Generic;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
List<int> list = new List<int>(new int[] { 34, 12, 98 , 99});
for (int i = 0; i < list.Count; i++) {
Console.WriteLine($"{i} = {list[i]}");
}
}
}
}
/*
run:
0 = 34
1 = 12
2 = 98
3 = 99
*/