Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
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