TOPIC
10% Erro Clojure
izaquepspro asked 2 years ago
(defn parse-Int [s]
(Integer. (re-find #"\d+" s )))
(require '[clojure.string :as str])
(def l (str/split (read-line) #" "))
(def a (Integer/parseInt (get l 0)))
(def b (Integer/parseInt (get l 1)))
(def c (Integer/parseInt (get l 2)))
(if(and (> a b) (> a c)) (printf "%d eh o maior\n",a))
(if(and (> b a) (> b c)) (printf "%d eh o maior\n",b))
(if(and (> c a) (> c b)) (printf "%d eh o maior\n",c))
This topic was solved and cannot recieve new replies.