Average

Another word for average is mean. Both are essentially the same. To find the average or mean on a list of numbers we can use the Average method.

Basic example

The Average method can be used on any enumerable array and simply takes an average of all the numbers in an array or list.

Live example: https://dotnetfiddle.net/SM47PX

var scores = new[] { 2, 4, 6, 8, 10 };

var average = scores.Average();

// output: 6