This commit is contained in:
Simoes Lukas
2024-09-24 15:03:19 +02:00
parent ab52c40223
commit bda03135c6
5 changed files with 197 additions and 0 deletions

26
DEV1.1/TP10/tests.c Normal file
View 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;
}