Last active
March 25, 2020 18:49
-
-
Save jeffersonchaves/0b41e4969342b4444d7aedc0e1e1c617 to your computer and use it in GitHub Desktop.
Algoritmo em Portugol para calculo de ant. e sucessor de um número qualquer
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
funcao inicio() | |
{ | |
inteiro numero | |
escreva("informe um número para obter seu antecessor e sucessor") | |
leia(numero) | |
escreva("o numero é ", numero) | |
escreva("\no antecessor é ", numero - 1) | |
escreva("\no sucessor é ", numero - 2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment