using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LINQ
{
public class ExempleAnyAvergae
{
public static void Main()
{
string[] words = { "Paris", "New York", "Berlin", "Madrid", "Londre", "Milan" };
double averageLength = words.Average(w => w.Length);
Console.WriteLine("The average word length is {0} characters.", averageLength);
}
}
}