DEV/DEV1.1/CM2/moyenne.c
Simoes Lukas 59f7eead89 A
2025-01-07 15:07:12 +01:00

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;
}