Created
August 10, 2014 09:16
-
-
Save rinx/6ffc5823670a1c314fe7 to your computer and use it in GitHub Desktop.
FizzBuzz with clisp
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
(defun fizzbuzz () | |
(loop for i | |
below 100 | |
do (progn | |
(princ (cond ((zerop (mod i 15)) "FizzBuzz") | |
((zerop (mod i 5 )) "Buzz") | |
((zerop (mod i 3 )) "Fizz") | |
(t i))) | |
(fresh-line)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment