A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
8
Task/Integer-comparison/Lua/integer-comparison-1.lua
Normal file
8
Task/Integer-comparison/Lua/integer-comparison-1.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue