Source file tour/flowcontrol/for.go

     1  //go:build OMIT
     2  
     3  package main
     4  
     5  import "fmt"
     6  
     7  func main() {
     8  	sum := 0
     9  	for i := 0; i < 10; i++ {
    10  		sum += i
    11  	}
    12  	fmt.Println(sum)
    13  }
    14  

View as plain text