0
Can anyone solve Downloader problem in Golang course
2 Antworten
+ 4
//define the download() function
func download(s int, c chan int) {
sum := 0
for i:=0; i<=s; i++ {
sum += i
}
c<-sum
}
//output the sum of all results
v:=<-ch1 + <-ch2 + <-ch3
+ 1
Yes, and you can do the same, just by reading the lessons one more time.......