Posted 25 March 2013 - 04:24 PM
I'm trying to write a Guess My Number program and I get that error.
the code is a bit like this
guess = 0
local num = math.random(1,100)
//some prints//
guess = read()
while guess ~= num do
if guess < num then
print "Too low!
break
else
print "Too high!"
break
end
end
the code is a bit like this
guess = 0
local num = math.random(1,100)
//some prints//
guess = read()
while guess ~= num do
if guess < num then
print "Too low!
break
else
print "Too high!"
break
end
end