Skip to content

Instantly share code, notes, and snippets.

@falcettijr
Created March 15, 2017 16:29
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/088767926c6f09bb1668f92de1f69831 to your computer and use it in GitHub Desktop.
Save falcettijr/088767926c6f09bb1668f92de1f69831 to your computer and use it in GitHub Desktop.
algoritmo media_com_repeticao.txt
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