Created
March 31, 2019 01:56
-
-
Save lrlucena/1f865467ab87fcefbe19ada6cbbb3427 to your computer and use it in GitHub Desktop.
potigol created by lrlucena - https://repl.it/@lrlucena/potigol
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
escreva " | |
|Jogo Maior - Menor | |
|" | |
numero = aleatório(1, 100) | |
imprima "Eu escolhi um número entre 1 e 100. Tente adivinhar: " | |
var palpite := leia_inteiro | |
enquanto palpite <> numero faça | |
se palpite < numero então | |
imprima "O número é maior do que {palpite}: " | |
senão | |
imprima "O número é menor do que {palpite}: " | |
fim | |
palpite := leia_inteiro | |
fim | |
escreva "Parabéns, você ganhou!" |
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
.PHONY: run | |
file := $(shell ls -Rt | grep \.poti | head -n1) | |
run: | |
@java -jar potigol.jar -c -w $(file) | |
This file has been truncated, but you can view the full file.
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
PK }rN META-INF/MANIFEST.MF�� }�� | |
�0D��C~ K{��SA���,�����oAi�뼙�̖)`m���Rb�F��dt�ٶe�J-�Q95z����� G=f��Q�]c�bZr�����pg������UfK�O��jԽ �(��8bG�no�xPK�T�.� " PK | |