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[] {17, 23, 35, 41, 50});
for (int i = 0; i < list.Count; i++)
{
Console.WriteLine($"index[{i}] = {list[i]}");
}
}
}
}
/*
run:
index[0] = 17
index[1] = 23
index[2] = 35
index[3] = 41
index[4] = 50
*/