27 lines
618 B
C
27 lines
618 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(void){
|
||
|
double lundi;
|
||
|
double mardi;
|
||
|
double mercredi;
|
||
|
double jeudi;
|
||
|
double vendredi;
|
||
|
printf("Renseignez les clients : ");
|
||
|
scanf("%lf", &lundi);
|
||
|
printf("Renseignez les clients : ");
|
||
|
scanf("%lf", &mardi);
|
||
|
printf("Renseignez les clients : ");
|
||
|
scanf("%lf", &mercredi);
|
||
|
printf("Renseignez les clients : ");
|
||
|
scanf("%lf", &jeudi);
|
||
|
printf("Renseignez les clients : ");
|
||
|
scanf("%lf", &vendredi);
|
||
|
double valfinal = 0;
|
||
|
valfinal = valfinal + lundi + mardi + mercredi + jeudi + vendredi ;
|
||
|
valfinal = valfinal / 5;
|
||
|
printf("%lf", valfinal);
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|
||
|
|
||
|
|