Open Mehdi-orang opened 5 years ago
I don't know below code how computing the out!! https://tour.golang.org/flowcontrol/3
package main
import "fmt"
func main() { sum := 1 for sum < 9 { sum += sum } fmt.Println(sum) }
Try something like this?
package main import "fmt" func main() { sum := 1 for sum < 9 { + fmt.Println(sum) sum += sum } fmt.Println(sum) }
I don't know below code how computing the out!! https://tour.golang.org/flowcontrol/3
package main
import "fmt"
func main() { sum := 1 for sum < 9 { sum += sum } fmt.Println(sum) }