package main import "fmt" func main() { total := 0 count := 1 for count <= 10 { total += count count++ } fmt.Println("1到10的和是:", total) }