package main
import (
"fmt"
)
func main() {
var numbers []*int
for _, value := range []int{10, 20, 30, 40} {
numbers = append(numbers, &value)
}
for _, number := range numbers {
fmt.Printf("%d\n", *number)
}
}
cGFja2FnZSBtYWluCgppbXBvcnQgKAoJImZtdCIKKQoKZnVuYyBtYWluKCkgewoJdmFyIG51bWJlcnMgW10qaW50CgoJZm9yIF8sIHZhbHVlIDo9IHJhbmdlIFtdaW50ezEwLCAyMCwgMzAsIDQwfSB7CgkJbnVtYmVycyA9IGFwcGVuZChudW1iZXJzLCAmdmFsdWUpIAoJfQoKCWZvciBfLCBudW1iZXIgOj0gcmFuZ2UgbnVtYmVycyB7CgkJZm10LlByaW50ZigiJWRcbiIsICpudW1iZXIpCgl9Cn0K