RosettaCodeData/Task/Guess-the-number/Locomotive-Basic/guess-the-number.basic
2023-07-01 13:44:08 -04:00

6 lines
176 B
Text

10 RANDOMIZE TIME:num=INT(RND*10+1):guess=0
20 PRINT "Guess the number between 1 and 10."
30 WHILE num<>guess
40 INPUT "Your guess? ", guess
50 WEND
60 PRINT "That's correct!"