Skip to content

Permutation

admin edited this page Jun 10, 2021 · 3 revisions

Permutation

Pn = n!

import "github.com/digital-technology-agency/math"

func Example() {
    n := 4
    value := math.PermutationsInt(n)
	fmt.Printf("Result: %d", value)
    /*
        Result: 24    
    */ 
}
Clone this wiki locally