18 lines
320 B
C
18 lines
320 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <math.h>
|
||
|
#include <fonction.h>
|
||
|
|
||
|
int main(int argc, char *argv[]){
|
||
|
double tab[10];
|
||
|
int i;
|
||
|
for(i=1; i<argc; i++){
|
||
|
tab[i-1] = strtod(argv[i], NULL);
|
||
|
printf("%lf\n", tab[i-1]);
|
||
|
}
|
||
|
int a = valnull(tab , argc);
|
||
|
printf("%d", a-1);
|
||
|
printf("valeurs nulles")
|
||
|
return 0;
|
||
|
}
|