Advertisement
Guest User

Untitled

a guest
Sep 8th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.25 KB | None | 0 0
  1. (loop
  2.    for i from 1 to 100
  3.    when (zerop (mod i 3)) do (format t "Fizz") end
  4.    when (zerop (mod i 5)) do (format t "Buzz") end
  5.    when (and (not (zerop (mod i 3))) (not (zerop (mod i 5))))
  6.      do (format t "~A" i) end
  7.    do (format t "~%"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement