Fin TP10
This commit is contained in:
26
DEV1.1/TP10/tests.c
Normal file
26
DEV1.1/TP10/tests.c
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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;
|
||||
}
|
Reference in New Issue
Block a user