Skip to content

Instantly share code, notes, and snippets.

@jose35info
Created October 25, 2025 01:01
Show Gist options
  • Select an option

  • Save jose35info/2e94d58edf9ebe124ec621346b2c4dd6 to your computer and use it in GitHub Desktop.

Select an option

Save jose35info/2e94d58edf9ebe124ec621346b2c4dd6 to your computer and use it in GitHub Desktop.
resoluçao do problema "Consumo"
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)}`);
}
@jose35info
Copy link
Author

Atualização

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment