You are viewing a single comment's thread. Return to all comments →
Golang
func extraLongFactorials(n int32) { N := big.NewInt(0) N.MulRange(1, int64(n)) fmt.Println(N.String()) }
Option 2
func extraLongFactorials(n int32) { N := big.NewInt(1) X := int(n) for x := 1; x <= X; x++ { N.Mul(N, big.NewInt(int64(x))) } // N.MulRange(1, int64(n)) fmt.Println(N.String()) }
Seems like cookies are disabled on this browser, please enable them to open this website
Extra Long Factorials
You are viewing a single comment's thread. Return to all comments →
Golang
Option 2