#Pyth, 57 55 53 bytes
Pyth, 57 55 53 bytes
AQjd[G"is"@c"equal to
greater than
less than"b._-GHH)
This basically does:
["less than", "greater than", "equal to"][sign_of(A-B)]
Saved 2 bytes thanks to @AlexA.'s suggestion of using A
instead of J
and K
and another 2 bytes by replacing the whole addition mess with a simpler subtraction.
##55-byte version
55-byte version
AQjd[G"is"@c"less than
greater than
equal to"b+gGHqGHH)
##57-byte version:
57-byte version:
jd[JhQ"is"@c"less than
greater than
equal to"b+gJKeQqJKK)