RosettaCodeData/Task/Guess-the-number/Pluto/guess-the-number.pluto
2026-04-30 12:34:36 -04:00

7 lines
191 B
Text

require "io2"
local n = math.random(1, 10) -- computer number from 1 to 10 inclusive
repeat
local guess = io.readInt("Your guess 1-10 : ", 1, 10)
until n == guess
print("Well guessed!")