开始 ❯
×
改变方向
更改主题,深色/浅色
package main package main import ("fmt") func factorial_recursion(x float64) (y float64) { if x > 0 { y = x * factorial_recursion(x-1) } else { y = 1 } return } func main() { fmt.Println(factorial_recursion(4)) }
24