package main import ."fmt" var a, b int func main() { Scan(&a) // b := a var list = make([]int, 0) for i:=0; i < a; i++ { Scan(&b) list = append(list, b) } total := 0 for _, v := range list { total = total + v } Println(total) }