summaryrefslogtreecommitdiff
path: root/tests/fizzbuzz.bth
blob: 82e80cfaddfa2141a3ce27a188c42a8840d69b46 (plain)
1
2
3
4
5
6
7
8
9
10
(do 
 (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))))