Created
March 15, 2017 16:29
-
-
Save falcettijr/088767926c6f09bb1668f92de1f69831 to your computer and use it in GitHub Desktop.
algoritmo media_com_repeticao.txt
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
algoritmo media_com_repeticao | |
var | |
nota1, nota2, media : real | |
contador: inteiro | |
inicio | |
para contador de 1 ate 20 passo 1 faca | |
escreva ("digita nota 1") | |
leia(nota1) | |
escreva ("digite nota 2") | |
leia(nota2) | |
media <- (nota1 + nota2)/2 | |
se media >= 60 | |
então | |
escreva ("aluno Aprovado") | |
senão | |
escreva ("aluno reprovado") | |
fim se | |
fim para | |
fim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment