Basic Calculator using “Clojure’s”

后端 未结 0 1144
野性不改
野性不改 2021-01-26 18:22

We have to a write code in "Clojure’s" using case extension -

(defn calculator [x a b]
  (case x "+" (println (+ a b))
          "-"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题