7 lines
114 B
Text
7 lines
114 B
Text
float mean(float[] arr) {
|
|
float out = 0;
|
|
for (float n : arr) {
|
|
out += n;
|
|
}
|
|
return out / arr.length;
|
|
}
|