19 lines
264 B
Plaintext
19 lines
264 B
Plaintext
count = 1
|
|
|
|
while count <= 15 {
|
|
mod_three = count % 3 == 0
|
|
mod_five = count % 5 == 0
|
|
|
|
if mod_three && mod_five {
|
|
(output 'fizzbuzz')
|
|
} else if mod_three {
|
|
(output 'fizz')
|
|
} else if mod_five {
|
|
(output 'buzz')
|
|
} else {
|
|
(output count)
|
|
}
|
|
|
|
count += 1
|
|
}
|