Skip to content

Instantly share code, notes, and snippets.

@austa
Created October 4, 2013 17:17
Show Gist options
  • Save austa/6829395 to your computer and use it in GitHub Desktop.
Save austa/6829395 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main(){
i := 0
for i <= 100{
if i % 3 == 0 && i % 5 == 0 {
fmt.Println("fiizzzbasss ----->", i)
}else{
if i % 3 == 0{
fmt.Println("fizzzzzz ----->", i)
}else{
if i % 5 == 0{
fmt.Println("basssss ------>", i)
}
}
}
i += 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment