0
respostas

Resposta - Listando os alunos

#region Lista de alunos

Dictionary<string, decimal> notas = new Dictionary<string, decimal>();
{
    notas.Add("Ana", 8.75m);
    notas.Add("Bruno", 6.90m);
    notas.Add("Clara", 9.25m);
}

foreach (var item in notas)
{
    Console.WriteLine($"Aluno: {item.Key} - Nome: {item.Value}");
}    


#endregion