29 lines
474 B
C
29 lines
474 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(void){
|
||
|
double a=0;
|
||
|
double b=0;
|
||
|
double c=0;
|
||
|
double d=0;
|
||
|
double e=0;
|
||
|
printf("visiteur le Lundi: ");
|
||
|
scanf("%lf",&a);
|
||
|
printf("visiteur le Mardi: ");
|
||
|
scanf("%lf",&b);
|
||
|
printf("visiteur le Mercredi: ");
|
||
|
scanf("%lf",&c);
|
||
|
printf("visiteur le Jeudi: ");
|
||
|
scanf("%lf",&d);
|
||
|
printf("visiteur le Vendredi: ");
|
||
|
scanf("%lf",&e);
|
||
|
|
||
|
printf("Le nombre de visiteur moyen est de : %lf",(a+b+c+d+e)/5);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|