go-tour/for.go
2020-02-04 21:44:36 -06:00

12 lines
113 B
Go

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