TP04 fini
This commit is contained in:
18
DEV1.1/TP04/somme.c
Normal file
18
DEV1.1/TP04/somme.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user