DEV_BUT1/DEV1.1/TP06/affluence.c

27 lines
618 B
C
Raw Normal View History

2022-10-18 14:50:36 +02:00
#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;
}