RosettaCodeData/Task/Integer-comparison/Hy/integer-comparison.hy

7 lines
217 B
Hy

(def a (int (input "Enter value of a: ")))
(def b (int (input "Enter value of b: ")))
(print (cond [(< a b) "a is less than b"]
[(> a b) "a is greater than b"]
[(= a b) "a is equal to b"]))