// sum accepts a slice and channel,
// adds all the numbers in slice, and send the result to channel
sum accepts a slice and channel,
adds all the numbers in slice, and send the result to channel
// sum accepts a slice and channel // adds all the numbers in slice and send the result to channel
func sum(s []int, c chan int) {
	sum := 0
	for _, n := range s {
		sum += n
	}
	c <- sum
}
func sum ( s [ ] int , c chan int ) { sum := 0 for _ , n := range s { sum += n } c <- sum }
sum accepts a slice and channel,
adds all the numbers in slice, and send the result to channel
sum accepts a slice and channel adds all the numbers in slice and send the result to channel