13 lines
174 B
Go
13 lines
174 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
x := [5]float64{ 98, 93, 77, 82, 83 }
|
|
total := 0.0
|
|
for _, v := range x {
|
|
total += v
|
|
}
|
|
fmt.Println(total / float64(len(x)))
|
|
}
|