blah blah

심심풀이 – Clojure 구구단

(defn multiplication-table [num]
	(dotimes [x num]
	       (if-not (zero? x)
                   (dotimes [y 9]
		           (print (format "%3d " (* (inc x) (inc y))))))
	           (println)))

참고 : http://thinkrelevance.com/blog/2008/09/18/pcl-clojure-chapter-7.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s