Go 基础 for (4)
package main import "fmt" func list(n int) { for i :=0; i<=n; i++ { fmt.Printf("%d+%d=%d\n",i,n-i,n) } } func main() { list(11) }
package main import "fmt" func list(n int) { for i :=0; i<=n; i++ { fmt.Printf("%d+%d=%d\n",i,n-i,n) } } func main() { list(11) }