Use the Cbrt()
function from the math
package to find the cube root of a given number in Go.
package main
import (
"fmt"
"math"
)
func main() {
fmt.Println(math.Cbrt(8))
}
Output:
2
Please consider supporting us by disabling your ad blocker
Use the Cbrt()
function from the math
package to find the cube root of a given number in Go.
package main
import (
"fmt"
"math"
)
func main() {
fmt.Println(math.Cbrt(8))
}
Output:
2