11 lines
237 B
Text
11 lines
237 B
Text
for (i in 1..100) {
|
|
if (i % 15 == 0) {
|
|
System.print("FizzBuzz")
|
|
} else if (i % 3 == 0) {
|
|
System.print("Fizz")
|
|
} else if (i % 5 == 0) {
|
|
System.print("Buzz")
|
|
} else {
|
|
System.print(i)
|
|
}
|
|
}
|