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