diff options
| author | Matthew Hall <hallmatthew314@gmail.com> | 2023-02-18 00:11:29 +1300 |
|---|---|---|
| committer | Matthew Hall <hallmatthew314@gmail.com> | 2023-02-18 00:11:29 +1300 |
| commit | 69276220df02d2c226021d79ee4a4fd173ae85ee (patch) | |
| tree | a53bf65216fcbc0ed11d19e90daf9a4be31d6019 /examples | |
| parent | c8e97a9e6ebfefec0db5bc51bd095b3d10dfd078 (diff) | |
String literals, fizzbuzz, other tweaks
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/fizzbuzz.dumb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/fizzbuzz.dumb b/examples/fizzbuzz.dumb new file mode 100644 index 0000000..c96563f --- /dev/null +++ b/examples/fizzbuzz.dumb @@ -0,0 +1,13 @@ +1 +WHILE 101 OVER < DO + 3 OVER /% SWAP DROP + OVER 5 SWAP /% SWAP DROP + IF 0 == + DO + IF 0 == DO "Fizzbuzz" ELSE "Buzz" END + ELSE + IF 0 == DO "Fizz" ELSE DUP END + END + . 1 + +END + |
