Go面试: 求1+2!+3!+...+20!的和 (Golang经典编程案例)
求1+2!+3!+…+20!的和,代码如下:package mainimport "fmt"func main() {var a, b = 1, 0for i := 1; i < 21; i++ {a = a * ib = b + afmt.Printf("第%d个值是:%d\n", i, b)}fmt.Println("1+2!+3!+...+20!的和是:", b...