Skip to content

Instantly share code, notes, and snippets.

@kupp1
Last active July 9, 2019 06:38
Show Gist options
  • Save kupp1/3281f9a2028e2476c9c8fec7da6f7454 to your computer and use it in GitHub Desktop.
Save kupp1/3281f9a2028e2476c9c8fec7da6f7454 to your computer and use it in GitHub Desktop.
lisp multiplication table
(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)))
(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