Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
10
Task/FizzBuzz/Scheme/fizzbuzz-2.ss
Normal file
10
Task/FizzBuzz/Scheme/fizzbuzz-2.ss
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(define (fizzbuzz x y)
|
||||
(println
|
||||
(cond (( = (modulo x 15) 0 ) "FizzBuzz")
|
||||
(( = (modulo x 3) 0 ) "Fizz")
|
||||
(( = (modulo x 5) 0 ) "Buzz")
|
||||
(else x)))
|
||||
|
||||
(if (< x y) (fizzbuzz (+ x 1) y)))
|
||||
|
||||
(fizzbuzz 1 100)
|
||||
Loading…
Add table
Add a link
Reference in a new issue