Created
August 9, 2019 04:20
-
-
Save aleDsz/2dcb0841c6a7ac19863ca24c699e0462 to your computer and use it in GitHub Desktop.
Exercício do AleMonja
This file contains hidden or 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 "Exercício do AleMonja" | |
| var | |
| contador : Inteiro | |
| inicio | |
| contador <- 1 | |
| enquanto (contador <= 100) faca | |
| se (contador mod 3 = 0) e (contador mod 5 = 0) entao | |
| escreval("AleMonja") | |
| senao | |
| se contador mod 3 = 0 entao | |
| escreval("Ale") | |
| senao | |
| se contador mod 5 = 0 entao | |
| escreval("Monja") | |
| senao | |
| escreval(contador) | |
| fimse | |
| fimse | |
| fimse | |
| contador <- contador + 1 | |
| fimenquanto | |
| fimalgoritmo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment