diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-21 14:18:54 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-21 14:36:08 +0100 |
commit | 377822b957c442b2ff0882b8325033487037be2b (patch) | |
tree | 9d71bc239e483b9c606dc9849fd890eab02b9a5b /tests/fizzbuzz.bth | |
parent | 21994864559386f1d11c001d6d27714cbf624a15 (diff) |
þ -> th
Diffstat (limited to 'tests/fizzbuzz.bth')
-rw-r--r-- | tests/fizzbuzz.bth | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/fizzbuzz.bth b/tests/fizzbuzz.bth new file mode 100644 index 0000000..e70c2c1 --- /dev/null +++ b/tests/fizzbuzz.bth @@ -0,0 +1,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)))) + + |