12 lines
106 B
Go
12 lines
106 B
Go
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
|
sum := 1
|
||
|
for sum < 1000 {
|
||
|
sum += sum
|
||
|
}
|
||
|
fmt.Println(sum)
|
||
|
}
|