Added golang

This commit is contained in:
DigitalCyan 2020-12-10 18:06:57 +00:00
parent ed0e77d2c7
commit 9acbfb9a40

23
Main.go Normal file
View File

@ -0,0 +1,23 @@
package main
import "fmt"
func main(){
for i := 1; i <= 100; i++ {
output := "";
if (i % 3 == 0) {
output += "Fizz"
}
if(i % 5 == 0) {
output += "Buzz"
}
if(output == ""){
fmt.Println(i)
}else{
fmt.Println(output)
}
}
}