go-tour/for-continued.go

12 lines
106 B
Go
Raw Normal View History

2020-02-05 03:44:36 +00:00
package main
import "fmt"
func main() {
sum := 1
for sum < 1000 {
sum += sum
}
fmt.Println(sum)
}