Mid LINQ

Get average salary of all employees?

Get average salary of all employees

var avg = employees.Average(e => e.Salary);

More from LINQ Tutorial

All questions for this course