YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
10
Task/FizzBuzz/Emacs-Lisp/fizzbuzz.l
Normal file
10
Task/FizzBuzz/Emacs-Lisp/fizzbuzz.l
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(defun fizzbuzz (n)
|
||||
(cond ((and
|
||||
(eq (% n 5) 0)
|
||||
(eq (% n 3) 0)) "FizzBuzz")
|
||||
((eq (% n 3) 0) "Fizz")
|
||||
((eq (% n 5) 0) "Buzz")
|
||||
(t n)))
|
||||
|
||||
;; loop & print from 0 to 100
|
||||
(dotimes (i 101) (princ-list (fizzbuzz i)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue