package main
import (
"fmt"
)
func main() {
olds := []int{1 << 0, 1 << 1, 1 << 2, 1 << 3}
for old := range olds {
fmt.Printf("%04b\n", old)
}
fmt.Printf("%04b\n", 1<<0)
fmt.Printf("%04b\n", 1<<1)
fmt.Printf("%04b\n", 1<<2)
fmt.Printf("%04b\n", 1<<3)
}
When executing "go run main.go", the output was as follows:
0000
0001
0010
00110001
0010
0100
1000
please help!
