26 lines
525 B
C
26 lines
525 B
C
|
# include <stdio.h>
|
||
|
# include <stdlib.h>
|
||
|
|
||
|
int main(void) {
|
||
|
int lundi;
|
||
|
int mardi;
|
||
|
int mercredi;
|
||
|
int jeudi;
|
||
|
int vendredi;
|
||
|
printf("1er jour : ");
|
||
|
scanf("%d", &lundi);
|
||
|
getchar();
|
||
|
printf("\n2e jour : ");
|
||
|
scanf("%d", &mardi);
|
||
|
getchar();
|
||
|
printf("\n3e jour : ");
|
||
|
scanf("%d", &mercredi);
|
||
|
getchar();
|
||
|
printf("\n4e jour : ");
|
||
|
scanf("%d", &jeudi);
|
||
|
getchar();
|
||
|
printf("\n5e jour : ");
|
||
|
scanf("%d", &vendredi);
|
||
|
printf("\nMoyenne : %.2f", (double) (lundi + mardi + mercredi + jeudi + vendredi) / 5);
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|