Isoraqathedh

fizzbuzz

Jul 9th, 2016
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.23 KB | None | 0 0
  1. (loop for i from 1 to 100
  2.       for |3| = (zerop (mod i 3))
  3.       for |5| = (zerop (mod i 5))
  4.       collect (cond ((and |3| |5|) :fizzbuzz)
  5.                     (|3| :fizz)
  6.                     (|5| :buzz)
  7.                     (t i)))
Advertisement
Add Comment
Please, Sign In to add comment