Source file tour/flowcontrol/for-continued.go

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

View as plain text