Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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