Dictionary<string, List> vendasCarros = new Dictionary<string, List> { { "Bugatti Veyron", new List { 10, 15, 12, 8, 5 } }, { "Koenigsegg Agera RS", new List { 2, 3, 5, 6, 7 } }, { "Lamborghini Aventador", new List { 20, 18, 22, 24, 16 } }, { "Pagani Huayra", new List { 4, 5, 6, 5, 4 } }, { "Ferrari LaFerrari", new List { 7, 6, 5, 8, 10 } } };
foreach (KeyValuePair<string, List> item in vendasCarros) { double media = item.Value.Average();
Console.WriteLine($"A média de vendas do {item.Key} é {media}");
}