Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/FizzBuzz/PicoLisp/fizzbuzz-1.l
Normal file
6
Task/FizzBuzz/PicoLisp/fizzbuzz-1.l
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(for N 100
|
||||
(prinl
|
||||
(or (pack (at (0 . 3) "Fizz") (at (0 . 5) "Buzz")) N) ) )
|
||||
|
||||
# Above, we simply count till 100 'prin'-ting number 'at' 3rd ('Fizz'), 5th ('Buzz') and 'pack'-ing 15th number ('FizzBuzz').
|
||||
# Rest of the times 'N' is printed as it loops in 'for'.
|
||||
7
Task/FizzBuzz/PicoLisp/fizzbuzz-2.l
Normal file
7
Task/FizzBuzz/PicoLisp/fizzbuzz-2.l
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(for N 100
|
||||
(prinl
|
||||
(cond
|
||||
((=0 (% N 15)) "FizzBuzz")
|
||||
((=0 (% N 3)) "Fizz")
|
||||
((=0 (% N 5)) "Buzz")
|
||||
(T N) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue