Пример #1
0
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))
}
Пример #2
0
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)
}
Пример #3
0
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))
}