First assignment
Write an expression to calculate the sum of (i.e. add) 3 and 4 !Hints:
- Here, from the Cheat Sheet, are Clojure's arithmetic functions:
- The way to run functions in Clojure is to throw the functions into parentheses along with their blank-separated arguments, if any.
Extra credit
Compute the sum of 3, 4, 5 and 6 !
Hint:
- The addition function doesn't care how many arguments you give it.
No comments:
Post a Comment