A
This commit is contained in:
8
DEV1.1/CM2/moyenne.c
Normal file
8
DEV1.1/CM2/moyenne.c
Normal file
@@ -0,0 +1,8 @@
|
||||
double moyenne(int* t, int len) {
|
||||
int i;
|
||||
int somme = 0;
|
||||
for (i = 0; i != len; i++) {
|
||||
somme += t[i];
|
||||
}
|
||||
return somme/len;
|
||||
}
|
Reference in New Issue
Block a user