Junior — Senior
What output will the program produce
livecode
Task condition
Determine what output will be printed when the following program is executed.
func main() {
numbersChan := make(chan int, 5)
for idx := 1; idx <= 5; idx++ {
numbersChan <- idx
}
close(numbersChan)
for true {
fmt.Println(<-numbersChan)
}
}