n = assert(io.read("*number"), "invalid input")
n = io.read()
assert(tonumber(n), "invalid input: " .. n .. " is not a number")
n = assert(io.read("*number"), "invalid input")
n = io.read()
assert(tonumber(n), "invalid input: " .. n .. " is not a number")
No comments:
Post a Comment