Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
var randnum
|
||||
var guess
|
||||
randnum & random 1 10
|
||||
guess = 0
|
||||
while ne randnum guess
|
||||
print "I'm thinking of a number between 1 and 10. What is it? "
|
||||
guess & get
|
||||
if lt guess randnum
|
||||
print "Too low. Try again!"
|
||||
println
|
||||
endif
|
||||
if gt guess randnum
|
||||
print "Too high. Try again!"
|
||||
println
|
||||
endif
|
||||
endwhile
|
||||
print "Correct number. You win!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue