RosettaCodeData/Task/FizzBuzz/Dyalect/fizzbuzz.dyalect
2023-07-01 13:44:08 -04:00

15 lines
224 B
Text

var n = 1
while n < 20 {
if n % 15 == 0 {
print("fizzbuzz")
} else if n % 3 == 0 {
print("fizz")
} else if n % 5 == 0 {
print("buzz")
} else {
print(n)
}
n = n + 1
}