int[] allNums = { 1, 2, 3, 4, 5 };int index = 0;while (index <= 5){ Console.WriteLine($"Last index {allNums[index]}"); index++;}