clojurecademy / 4Clojure

4Clojure problems with a few differences
https://clojurecademy.com/courses/17592186045426/learn/overview
8 stars 2 forks source link

3. Let's do some math #17

Closed mladencikara closed 7 years ago

mladencikara commented 7 years ago

I have put: (ns math-operations)

(+ 1 2 3)

(println (+ 1 2 3)) (+ 5 (* 5 (- 7 2 1)))

In console and when I run it returns:

  1. instruction failed.

Apparently you did not copy and paste properly.Please check copy paste order.

6

ertugrulcetin commented 7 years ago

@mladencikara thanks for reaching out! you need to print this expression: (+ 5 (* 5 (- 7 2 1))) so code will end up like this:

(ns math-operations)

(+ 1 2 3)

(println (+ 1 2 3))

(println (+ 5 (* 5 (- 7 2 1))))
mladencikara commented 7 years ago

Thanks.