box-o-sand/gotime/gotour-artifacts/ranges/main.go

14 lines
177 B
Go
Raw Normal View History

2012-08-26 01:12:40 +00:00
package main
import "fmt"
func main() {
2012-11-06 02:00:35 +00:00
pow := make([]int, 10)
for i := range pow {
pow[i] = 1 << uint(i)
}
for _, value := range pow {
fmt.Printf("%d\n", value)
}
2012-08-26 01:12:40 +00:00
}