2020-01-27 16:56:46 +01:00
|
|
|
fn main() {
|
2020-03-21 09:47:38 +01:00
|
|
|
mut s := ''
|
|
|
|
for n in 1 .. 101 {
|
|
|
|
if n % 3 == 0 {
|
|
|
|
s += 'Fizz'
|
|
|
|
}
|
|
|
|
if n % 5 == 0 {
|
|
|
|
s += 'Buzz'
|
|
|
|
}
|
|
|
|
if s == '' {
|
|
|
|
println(n)
|
2021-02-23 18:43:44 +01:00
|
|
|
} else {
|
2020-03-21 09:47:38 +01:00
|
|
|
println(s)
|
|
|
|
}
|
|
|
|
s = ''
|
|
|
|
}
|
2020-01-27 16:56:46 +01:00
|
|
|
}
|