Created
May 18, 2023 07:28
-
-
Save christophejunke/83c66ddb5a6a3d00fb7f9cb0389171d4 to your computer and use it in GitHub Desktop.
fizz buzz
This file contains 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
(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