27/04/2026 1
NodeJS
let notas = [58,47,75,100,98];
let notaMinima = 60;
let soma = 0;
for (let nota of notas) {
soma += nota;
}
let media = soma / notas.length;
let acima = 0;
for (let nota of notas) {
if (nota >= notaMinima) {
acima++;
}
}
console.log("Média: " + media);
console.log("Quant. Notas igual ou acima de " + notaMinima + ": " + acima);
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.