first commit

This commit is contained in:
Илья Смышляев 2022-09-09 10:04:29 +03:00
commit b5a2328f0c
3 changed files with 21 additions and 0 deletions

17
FizzBuzz.go Normal file
View File

@ -0,0 +1,17 @@
package main
import "fmt"
func main() {
for i := 1; i < 101; i++ {
if i%15 == 0 {
fmt.Print("FizzBuzz\n")
} else if i%3 == 0 {
fmt.Print("Fizz\n")
} else if i%5 == 0 {
fmt.Print("Buzz\n")
} else {
fmt.Println(i)
}
}
}

1
README.md Normal file
View File

@ -0,0 +1 @@
# gotest

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module gotest/fizzbuzz
go 1.19