Junior — Senior
What result will program №8 output
livecode
Task condition
Determine what text will appear in the console after executing the following Go program:
func main() {
dataCh := make(chan int, 1)
for idx := 0; idx < 10; idx++ {
select {
case val := <-dataCh:
println(val)
case dataCh <- idx:
}
}
}