A Pen by José Antônio Gomes on CodePen.
Created
October 25, 2025 01:01
-
-
Save jose35info/2e94d58edf9ebe124ec621346b2c4dd6 to your computer and use it in GitHub Desktop.
resoluçao do problema "Consumo"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let nota1= parseFloat(prompt("Digite a primeira nota")); | |
| let nota2= parseFloat(prompt("Digite a segunda nota")); | |
| let soma=(nota1+nota2)/2; | |
| if(soma>= 0 && soma <= 60 ){ | |
| alert(`REPROVADO!! NOTA ${soma.toFixed(1)}`); | |
| }else{ | |
| alert(`APROVADO!! NOTA ${soma.toFixed(1)}`); | |
| } | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Atualização