Concurrency50 of 62
The starter code launches a goroutine that sends the squares of 1 through n on ch, then closes it. Use for v := range ch to receive every value until the channel closes, sum them, and print the total.
Sign in to try this exercise.