diff options
Diffstat (limited to 'tests/fizzbuzz.bth')
-rw-r--r-- | tests/fizzbuzz.bth | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/fizzbuzz.bth b/tests/fizzbuzz.bth index 82e80cf..42c1760 100644 --- a/tests/fizzbuzz.bth +++ b/tests/fizzbuzz.bth @@ -1,10 +1,9 @@ -(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)))) +(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))) |