The riddle

Report a typo

Sherlock Holmes is in the future. He is great at investigating crimes, but knows nothing about programming.

In one of the cases, he came across a riddle, the answer to which the program displays.

Help the great detective create the right ch channel so that the secret function can output the answer to the riddle.

Sample Input 1:

Sample Output 1:

Sir
Arthur
Ignatius
Conan
Doyle
Write a program in Go
package main

import (
"fmt"
)

func main() {
// you need to change the code only in this place
ch := ?

// do not change the code below
for range [5]struct{}{} {
ch <- struct{}{}
}

secret(ch)
}
___

Create a free account to access the full topic