push all exercices
This commit is contained in:
BIN
ch4/3/ch4_3.exe
Normal file
BIN
ch4/3/ch4_3.exe
Normal file
Binary file not shown.
12
ch4/3/ch4_3.go
Normal file
12
ch4/3/ch4_3.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
var total int
|
||||
for i := 0; i < 10; i++ {
|
||||
total = total + i
|
||||
fmt.Println(total)
|
||||
}
|
||||
fmt.Println(total)
|
||||
}
|
||||
3
ch4/3/go.mod
Normal file
3
ch4/3/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module ch4_3
|
||||
|
||||
go 1.25.0
|
||||
Reference in New Issue
Block a user