func main() { xs := []float64{1, 2, 3, 4} avg := math.Average(xs) fmt.Println(avg) fmt.Println("min =", math.Min(xs)) fmt.Println("max =", math.Max(xs)) }
func main() { xs := []float64{1, 2, 3, 4} avg := m.Average(xs) min := m.Min(xs) max := m.Max(xs) fmt.Println(xs) fmt.Println(avg) fmt.Println(min) fmt.Println(max) }
func main() { xs := []float64{1, 2, 3, 4} fmt.Println("Avg =", math.Average(xs)) fmt.Println("Min =", math.Min(xs)) fmt.Println("Max =", math.Max(xs)) }