fizzbuzz.lisp 319 B

123456789101112131415
  1. (defun fizzbuzz()
  2. (loop for x from 1 to 100 do
  3. (if (= 0 (mod x 15))
  4. (print FizzBuzz)
  5. (if (= 0 (mod x 3))
  6. (print Fizz)
  7. (if (= 0 (mod x 5))
  8. (print Buzz)
  9. (print x)
  10. )
  11. )
  12. )
  13. )
  14. )