RosettaCodeData/Task/Integer-comparison/Ursa/integer-comparison.ursa

16 lines
400 B
Plaintext

decl int first second
out "enter first integer: " console
set first (in int console)
out "enter second integer: " console
set second (in int console)
if (= first second)
out "the two integers are equal" endl console
end if
if (< first second)
out first " is less than " second endl console
end if
if (> first second)
out first " is greater than " second endl console
end if