Sobes.tech
Junior — Senior

What output will the console get in example №47

livecode

Task condition

What will be printed when the following program is run:

func main() {
    numbers := int[]{
        1, 2, 3, 4, 5,
    }

    for _, index := range numbers {
        go func() {
            fmt.Print(index)
        }()
    }
}