Skip to content

Instantly share code, notes, and snippets.

@christophejunke
Created May 18, 2023 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophejunke/83c66ddb5a6a3d00fb7f9cb0389171d4 to your computer and use it in GitHub Desktop.
Save christophejunke/83c66ddb5a6a3d00fb7f9cb0389171d4 to your computer and use it in GitHub Desktop.
fizz buzz
(defun fizz-buzz ()
(loop for i from 1 upto 100 do
(when (= 0 (mod i 3))
(princ "Fizz"))
(when (= 0 (mod i 5))
(princ "Buzz"))
(when (fresh-line)
(print i))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment