June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
17
Task/Factorial/Go/factorial-3.go
Normal file
17
Task/Factorial/Go/factorial-3.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
)
|
||||
|
||||
func factorial(n float64) float64 {
|
||||
return math.Gamma(n + 1)
|
||||
}
|
||||
|
||||
func main() {
|
||||
for i := 0.; i <= 10; i++ {
|
||||
fmt.Println(i, factorial(i))
|
||||
}
|
||||
fmt.Println(100, factorial(100))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue