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