summaryrefslogtreecommitdiff
path: root/tests/fizzbuzz.bth
blob: a94e4e18f32c90f1ec54c507938e243a45a6709f (plain)
1
2
3
4
5
6
7
8
9
(set! n 1)
(while (< n 30)
    (say 
     (if (= 0 (% n 5))
         (if (= 0 (% n 3)) "fizzbuzz" "buzz")
         (if (= 0 (% n 3)) "fizz" n)))
    (set! n (+ n 1)))