1
0
dust/examples/fizzbuzz.ds

16 lines
150 B
Plaintext
Raw Normal View History

2023-10-09 19:54:47 +00:00
count = 1
2023-10-06 12:17:37 +00:00
2023-10-09 19:54:47 +00:00
while count <= 15 {
(output count)
2023-10-07 01:59:01 +00:00
2023-10-09 19:54:47 +00:00
if count % 3 == 0 {
(output 'fizz')
2023-10-06 12:17:37 +00:00
}
2023-10-09 19:54:47 +00:00
if count % 5 == 0 {
(output 'buzz')
2023-10-06 12:17:37 +00:00
}
2023-10-09 19:54:47 +00:00
count += 1
2023-10-06 12:17:37 +00:00
}