Advertisement
Guest User

Untitled

a guest
Apr 15th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.23 KB | None | 0 0
  1. (defun fizzbizz (x y n)
  2.   (dotimes (i n)
  3.     (if (= (mod (+ i 1) x) 0)
  4.     (if (= (mod (+ i 1) y) 0) (format t "fizzBizz~%")
  5.       (format t "fizz~%"))
  6.       (if (= (mod (+ i 1) y) 0) (format t "bizz~%")
  7.     (format t "~a~%" (+ i 1))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement