RosettaCodeData/Task/Integer-comparison/Clojure/integer-comparison.clj
2023-07-01 13:44:08 -04:00

6 lines
218 B
Clojure

(let [[a b] (repeatedly read)]
(doseq [[op string] [[< "less than"]
[> "greater than"]
[= "equal to"]]]
(when (op a b)
(println (str a " is " string " " b)))))