19 lines
280 B
Plaintext
19 lines
280 B
Plaintext
count = 1
|
|
|
|
while count <= 15 {
|
|
divides_by_3 = count % 3 == 0
|
|
divides_by_5 = count % 5 == 0
|
|
|
|
if divides_by_3 && divides_by_5 {
|
|
output 'fizzbuzz'
|
|
} else if divides_by_3 {
|
|
output 'fizz'
|
|
} else if divides_by_5 {
|
|
output 'buzz'
|
|
} else {
|
|
output count
|
|
}
|
|
|
|
count += 1
|
|
}
|