18 lines
254 B
Go
18 lines
254 B
Go
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
|
for i := 1; i < 101; i++ {
|
||
|
if i%15 == 0 {
|
||
|
fmt.Printf("Fizzbuzz\n")
|
||
|
} else if i%5 == 0 {
|
||
|
fmt.Printf("Buzz\n")
|
||
|
} else if i%3 == 0 {
|
||
|
fmt.Printf("Fizz\n")
|
||
|
} else {
|
||
|
fmt.Printf("%v\n", i)
|
||
|
}
|
||
|
}
|
||
|
}
|