Average C#
using System;
using System.Linq;
using System.Collections.Generic;
class Demo {
static void Main() {
List<int> list = new List<int> { 5, 8, 13, 35, 67 };
double avg = Queryable.Average(list.AsQueryable());
Console.WriteLine("Average = "+avg);
}
}