go-playground/da_tour/datour/for-continued.go

12 lines
116 B
Go

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