0
Can someone help me out pls GOlang
package main import "fmt" //define the download() function func main() { ch1 := make(chan int) ch2 := make(chan int) ch3 := make(chan int) var s1, s2, s3 int fmt.Scanln(&s1) fmt.Scanln(&s2) fmt.Scanln(&s3) go download(s1, ch1) go download(s2, ch2) go download(s3, ch3) //output the sum of all results fmt.println(s1+s2+s3) } The protect downloader
2 Respostas
+ 5
Ejeh Wayne ,
you need to write the download function and put all together. if you have done this, please put your code to playground and link it here.
thank you very much!
0
Lothar u can put it in play ground and link it here