// Chapter 20 example: accumulate the sum of 1 to 20. // Add the count pattern below to print how many are even. // Run with: go run exercises/20/01-patterns.go package main import "fmt" func main() { sum := 0 for i := 1; i <= 20; i++ { sum += i } fmt.Println("sum", sum) }