RosettaCodeData/Task/Guess-the-number/MiniScript/guess-the-number.mini

9 lines
150 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
num = ceil(rnd*10)
while true
x = val(input("Your guess?"))
if x == num then
print "Well guessed!"
break
end if
end while