box-o-sand/oldstuff/gotime/gotour-artifacts/ranges/main.go
2015-06-22 13:15:42 -05:00

14 lines
177 B
Go

package main
import "fmt"
func main() {
pow := make([]int, 10)
for i := range pow {
pow[i] = 1 << uint(i)
}
for _, value := range pow {
fmt.Printf("%d\n", value)
}
}