Last active
March 15, 2017 16:37
-
-
Save falcettijr/189e7b93ae84e3509bbaf09a46322f6c to your computer and use it in GitHub Desktop.
exercicio algoritmo media (estrutura de decisão)
This file contains 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
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