Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. (dolist (num '(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15))
  2. (if (= 0 (mod num 3))
  3. (format t "Fizz")
  4. nil)
  5. (if (= 0 (mod num 5))
  6. (format t "Buzz")
  7. nil)
  8. (if (not (or (= 0 (mod num 5))
  9. (= 0 (mod num 3))))
  10. (format t "~a" num)
  11. nil)
  12. (format t "~%"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement