Gitly
Log in
Register
v
/
examples
Raw file
|
17 loc (17 sloc)
|
192 bytes
|
Latest commit hash 9e06af8bf
1
fn
main() {
2
mut
s :=
''
3
for
n
in
1 .. 101 {
4
if
n % 3 == 0 {
5
s +=
'Fizz'
6
}
7
if
n % 5 == 0 {
8
s +=
'Buzz'
9
}
10
if
s ==
''
{
11
println(n)
12
}
else
{
13
println(s)
14
}
15
s =
''
16
}
17
}