go-playground/da_tour/datour/for.go

12 lines
114 B
Go

package datour
import "fmt"
func For() {
sum := 0
for i := 0; i < 10; i++ {
sum += i
}
fmt.Println(sum)
}