Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (24 sloc) 0.321 kb
package main
import "fmt"
func main() {
const (
BUZZ = 5
FIZZ = 3
)
var p bool
for i:=1;i<100;i++{
p = false
if i % FIZZ == 0{
fmt.Printf("Fizz")
p = true
}
if i % BUZZ == 0 {
fmt.Printf("Buzz")
p = true
}
if !p{
fmt.Printf("%v", i)
}
fmt.Println()
}
}
Jump to Line
Something went wrong with that request. Please try again.