13 lines
259 B
Text
13 lines
259 B
Text
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 ne guess randnum
|
|
print "Incorrect. Try again!"
|
|
println
|
|
endif
|
|
endwhile
|
|
print "Correct number. You win!"
|