Example:
using System; using System.Linq; using System.Collections.Generic;
class LinqAverageExample { public static void Main(string[] args) {
int[] nums = { 51,52,53,63,72,110 };
var resutls = nums.Average(n => n);
Console.WriteLine(“The maximum number in the array: ” + resutls);
Console.ReadLine();
} }
Output: The maximum number in the array: 66.8333333333333
[...]
