Greatest of three numbers in Clojure
https://clojure-diary.gitlab.io/2024/08/16/greatest-of-three-numbers-in-clojure.html
Code ;; greatest_of_three_numbers.clj (def a 27) (def b 20) (def c 25) (if (> a b) (if (> a c) a c) (if (> b c) b c)) (if (> a b) (if (> a c) a c) (if (> b c) b c)) (if (and (> a b) (> a c)) a (if (and (> b a) (> b c)) b…
You must log in or register to comment.