(defn sum [n] (if ( == n 1) 1 (+ n (sum (dec n))))) (print (sum 1000))
Standard input is empty
500500
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!