RosettaCodeData/Task/Guess-the-number/Zoomscript/guess-the-number.zoom
2023-07-01 13:44:08 -04:00

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!"