Posts by user101298 • 11 points
1 post
-
1
votes2
answers57
viewsQ: Why is my arithmetic mean wrong?
var n1 = prompt("Nota 1: "); alert(n1); var n2 = prompt("Nota 2: "); alert(n2); var media = (n1+n2)/2; if(media >= 6){ alert("Aprovado!\n\nMédia: " + media); }else{ alert("Reprovado!\n\nMédia: "…
javascriptasked user101298 11