summaryrefslogtreecommitdiff
path: root/fizzbuzz.bþ
blob: e70c2c1316c3dde4464763fa91dd72d4770e3cf7 (plain)
1
2
3
4
5
6
7
8
9
10
(do 
 (set n 1)
 (while (< n 30)
        (print 
         (if (= 0 (% n 5))
             (if (= 0 (% n 3)) "fizzbuzz" "buzz")
             (if (= 0 (% n 3)) "fizz" n)))
        (set n (+ n 1))))