You are viewing a single comment's thread. Return to all comments →
compact clojure:
(dotimes [t (read)] (let [n (read)] (println (/ (* n (- (* 3 n) 1))2))))
Seems like cookies are disabled on this browser, please enable them to open this website
Pentagonal Numbers
You are viewing a single comment's thread. Return to all comments →
compact clojure: