using System.Collections.Generic;
public static void Main()
var arr = new List<int> { 1, 3, 5, 2, 4, 8, 7, 10 };
var inspectedElements = 0;
var currentElementIndex = arr.Count-1;
while (inspectedElements < arr.Count)
var el = arr[currentElementIndex];
foreach (var item in arr)
Console.Write(item + " ");