You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
177 B
14 lines
177 B
12 years ago
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
12 years ago
|
pow := make([]int, 10)
|
||
|
for i := range pow {
|
||
|
pow[i] = 1 << uint(i)
|
||
|
}
|
||
|
for _, value := range pow {
|
||
|
fmt.Printf("%d\n", value)
|
||
|
}
|
||
12 years ago
|
}
|