Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

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/189e7b93ae84e3509bbaf09a46322f6c to your computer and use it in GitHub Desktop.
Save falcettijr/189e7b93ae84e3509bbaf09a46322f6c to your computer and use it in GitHub Desktop.
exercicio algoritmo media (estrutura de decisão)
exercicio algoritmo media (estrutura de decisão)
var
nota1, nota2, media : real
inicio
leia(nota1)
leia(nota2)
media <- (nota1 + nota2) / 2
se media >= 60
então
escreva("Parabéns! Aprovado!")
senão
escreva("Aluno reprovado!")
Fim se
fim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment