标签:diff span color imp square port 结果 col sum
package main import "fmt" func main() { sum := 0 sum2 := 0 for i := 1; i <= 100; i++ { sum += i sum2 += i * i } fmt.Println(sum*sum - sum2) }
结果:25164150
标签:diff span color imp square port 结果 col sum
原文地址:https://www.cnblogs.com/miria-486/p/10092986.html