Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@falcettijr
Created March 21, 2017 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save falcettijr/afdfb75b3658d3332f267cee1a487041 to your computer and use it in GitHub Desktop.
Save falcettijr/afdfb75b3658d3332f267cee1a487041 to your computer and use it in GitHub Desktop.
Algoritmo média com se e senão
Algoritmo média com se e senão
var
nota1, nota2, media : real
inicio
escreva("Digite a primeira nota")
leia(nota1)
escreva("Digite a segunda nota")
leia(nota2)
media <-(nota1+nota2) / 2
Se media >= 7
então
escreva("Aprovado!")
senão
escreva("Reprovado!")
fim se
fim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment