using System;
using System.Collections.Generic;
class Program
{
static void Main() {
var lst = new List<int> { 55, 88, 33, 11, 100, 70 };
int total = lst.Count, i = 0;
foreach (int element in lst) {
Console.WriteLine(i + " " + element);
i++;
if (i == total) {
Console.WriteLine("Last = {0}", element);
}
}
}
}
/*
run:
0 55
1 88
2 33
3 11
4 100
5 70
Last = 70
*/