// 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 R8 { public static void Main(string[] args) { int[] a = { 101, 102, 103, 104, 105 }; Console.WriteLine(a[^1]); foreach(int a1 in a[1..3]) { Console.WriteLine(a1); } } }