TP04 fini

This commit is contained in:
2023-09-12 17:26:55 +02:00
parent 84006e98ee
commit af0f47be11
11 changed files with 76 additions and 0 deletions

18
DEV1.1/TP04/somme.c Normal file
View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
double r1,r2,r3,r4,r5;
printf("Tapez 5 réel : \n");
scanf("%lf",&r1);
getchar();
scanf("%lf",&r2);
getchar();
scanf("%lf",&r3);
getchar();
scanf("%lf",&r4);
getchar();
scanf("%lf",&r5);
printf("La somme des nombre est : %f \n",r1+r2+r3+r4+r5);
return EXIT_SUCCESS;
}