Last active
July 9, 2019 06:38
-
-
Save kupp1/3281f9a2028e2476c9c8fec7da6f7454 to your computer and use it in GitHub Desktop.
lisp multiplication table
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(loop for i from 1 to 10 do | |
(mapcar (lambda (x) (format t "~d x ~d = ~d~%" i x (* x i))) | |
'(1 2 3 4 5 6 7 8 9 10)) | |
(terpri))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(loop for i from 1 to 10 do | |
(loop for j from 1 to 10 do | |
(format t "~d x ~d = ~d~%" i j (* i j))) | |
(terpri)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment