Answers for "do while go"

Go
0

go while

C's while is spelled for in Go.
package main
import "fmt"
func main() {
	sum := 1
	for sum < 1000 {
		sum += sum
	}
	fmt.Println(sum)
}
Posted by: Guest on January-12-2021

Browse Popular Code Answers by Language