Samples
Samples
for-is-gos-while
Language: Gold, Platform: Echoes, Category: Tour of Go
https://github.com/remobjects/ElementsSamples/tree/master/Gold/Echoes/Tour of Go/for-is-gos-while
-
for-is-gos-while.Echoes
-
References
- #
- Source Files
-
Other Files
-
References
for-is-gos-while.go
// Ignored build directive: +build OMIT
package main
import "fmt"
func main() {
sum := 1
for sum < 1000 {
sum += sum
}
fmt.Println(sum)
}
