// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; public class R7 { public static void Main(string[] args) { int[] a = { 101, 102, 103, 104, 105 }; Console.WriteLine(a[a.Length - 1]); for(int i = 1; i < a.Length - 2; i++) { Console.WriteLine(a[i]); } } }