Jump to content

Integer comparison: Difference between revisions

Line 467:
end</lang>
Each infix operator has prefix synonyms (equalp, equal?, lessp, less?, greaterp, greater?), where the 'p' stands for "predicate" as in [[Lisp]].
 
=={{header|Lua}}==
<lang 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</lang>
 
=={{header|LSE64}}==
<lang lse64>over : 2 pick
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.