Created
March 2, 2017 05:13
-
-
Save bluebear94/4be2495fbf3c74e974b4af23392b6d3d to your computer and use it in GitHub Desktop.
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
n←ř(1,100) | |
g←0 | |
ḋ("Guess the number!") | |
m←0 | |
↺m≠n{ | |
ḋ("n =? ",0) | |
m←ž$ĩ() | |
g+←1 | |
?m<n{ḋ("Too low!")} | |
?m>n{ḋ("Too high!")} | |
} | |
ḋ("You guessed it in "~g~" guesses!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment