DEV/DEV1.1/TP03/somme.c

20 lines
328 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void){
double x=0;
double y=0;
printf("saisir cinq nombres reels: ");
scanf("%lf",&y);
x= x+y;
scanf("%lf",&y);
x= x+y;
scanf("%lf",&y);
x= x+y;
scanf("%lf",&y);
x= x+y;
scanf("%lf",&y);
x= x+y;
printf("la somme des cinq reels est : %f", x);
return EXIT_SUCCESS;
}