2024-09-10 15:03:39 +02:00
|
|
|
# include <stdlib.h>
|
|
|
|
# include <stdio.h>
|
|
|
|
|
|
|
|
int main(void) {
|
2024-09-10 16:54:52 +02:00
|
|
|
double reel;
|
|
|
|
double somme;
|
|
|
|
somme = 0;
|
|
|
|
printf("Veuillez entrer un réel : ");
|
|
|
|
scanf("%lf", &reel);
|
|
|
|
somme += reel;
|
2024-09-10 15:03:39 +02:00
|
|
|
getchar();
|
2024-09-10 16:54:52 +02:00
|
|
|
printf("\nVeuillez entrer un réel : ");
|
|
|
|
scanf("%lf", &reel);
|
|
|
|
somme += reel;
|
|
|
|
getchar();
|
|
|
|
printf("\nVeuillez entrer un réel : ");
|
|
|
|
scanf("%lf", &reel);
|
|
|
|
somme += reel;
|
|
|
|
getchar();
|
|
|
|
printf("\nVeuillez entrer un réel : ");
|
|
|
|
scanf("%lf", &reel);
|
|
|
|
somme += reel;
|
|
|
|
getchar();
|
|
|
|
printf("\nVeuillez entrer un réel : ");
|
|
|
|
scanf("%lf", &reel);
|
|
|
|
somme += reel;
|
|
|
|
getchar();
|
|
|
|
printf("\nSomme : %f\n", somme);
|
2024-09-10 15:03:39 +02:00
|
|
|
return EXIT_SUCCESS;
|
2024-09-10 16:54:52 +02:00
|
|
|
}
|
|
|
|
|