A Tour of Go For continued

As in C or Java, you can leave the pre and post statements empty.

package main 

import "fmt"

func main() {
    sum := 1
    for ; sum < 1000;  {
        sum += sum
    }
    fmt.Println(sum)
}
原文地址:https://www.cnblogs.com/ghgyj/p/4052963.html