int[] numbers = new int[] { 10, 30, 50, 40, 60, 20, 70, 90, 80, 100 }; int total = (from num in numbers select num).Sum();