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

12 lines
106 B
Go

package main
import "fmt"
func main() {
sum := 1
for sum < 1000 {
sum += sum
}
fmt.Println(sum)
}