0
respostas

[Projeto] Classificação de Números

List<int> notas = new List<int> { 1, 8, 5, 10, 5, 3, 7, 9, 2, 0 };

foreach(int notaQuiz in notas)
{
    if (notaQuiz >= 0 && notaQuiz <= 6)
    {
        Console.WriteLine($"Nota {notaQuiz} - Reprovado");
    } else
    {
        Console.WriteLine($"Nota {notaQuiz} - Aprovado");
    }
}