Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Guess-the-number/Zoomscript/guess-the-number.zoom
Normal file
13
Task/Guess-the-number/Zoomscript/guess-the-number.zoom
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue