Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/FizzBuzz/Emacs-Lisp/fizzbuzz.l
Normal file
9
Task/FizzBuzz/Emacs-Lisp/fizzbuzz.l
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
(defun fizzbuzz (n)
|
||||
(cond ((and (zerop (% n 5)) (zerop (% n 3))) "FizzBuzz")
|
||||
((zerop (% n 3)) "Fizz")
|
||||
((zerop (% n 5)) "Buzz")
|
||||
(t n)))
|
||||
|
||||
;; loop & print from 0 to 100
|
||||
(dotimes (i 101)
|
||||
(message "%s" (fizzbuzz i)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue