Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
13
Task/FizzBuzz/XLISP/fizzbuzz.xlisp
Normal file
13
Task/FizzBuzz/XLISP/fizzbuzz.xlisp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
(defun fizzbuzz ()
|
||||
(defun fizzb (x y)
|
||||
(display (cond
|
||||
((= (mod x 3) (mod x 5) 0) "FizzBuzz")
|
||||
((= (mod x 3) 0) "Fizz")
|
||||
((= (mod x 5) 0) "Buzz")
|
||||
(t x)))
|
||||
(newline)
|
||||
(if (< x y)
|
||||
(fizzb (+ x 1) y)))
|
||||
(fizzb 1 100))
|
||||
|
||||
(fizzbuzz)
|
||||
Loading…
Add table
Add a link
Reference in a new issue