14 lines
237 B
C
14 lines
237 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <fonction.h>
|
||
|
int valnull(double* tab, int taille){
|
||
|
int i;
|
||
|
int accumulateur = 0;
|
||
|
for(i=0; i<taille; i++){
|
||
|
if (fabs(tab[i]) == 0.0){
|
||
|
accumulateur += 1;
|
||
|
}
|
||
|
}
|
||
|
return accumulateur;
|
||
|
}
|