RosettaCodeData/Task/Integer-comparison/Lua/integer-comparison-1.lua
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

8 lines
289 B
Lua

print('Enter the first number: ')
a = tonumber(io.stdin:read())
print('Enter the second number: ')
b = tonumber(io.stdin:read())
if a < b then print(a .. " is less than " .. b) end
if a > b then print(a .. " is greater than " .. b) end
if a == b then print(a .. " is equal to " .. b) end