mirror of
https://github.com/janet-lang/janet
synced 2024-10-31 22:16:16 +00:00
11 lines
239 B
Clojure
11 lines
239 B
Clojure
# A simple fizz buzz example
|
|
|
|
(loop [i :range [1 101]
|
|
:let [fizz (zero? (% i 3))
|
|
buzz (zero? (% i 5))]]
|
|
(print (cond
|
|
(and fizz buzz) "fizzbuzz"
|
|
fizz "fizz"
|
|
buzz "buzz"
|
|
i)))
|