Package de mathématiques
package main
import "fmt"
// import the math package
import "math"
func main() {
// find the square root
fmt.Println(math.Sqrt(25)) // 5
// find the cube root
fmt.Println(math.Cbrt(27)) // 3
// find the maximum number
fmt.Println(math.Max(21, 18)) // 21
// find the minimum number
fmt.Println(math.Min(21, 18)) // 18
// find the remainder
fmt.Println(math.Mod(5, 2)) // 1
}
SAMER SAEID