9 lines
129 B
C
9 lines
129 B
C
double moyenne(int* t, int len) {
|
|
int i;
|
|
int somme = 0;
|
|
for (i = 0; i != len; i++) {
|
|
somme += t[i];
|
|
}
|
|
return somme/len;
|
|
}
|