DEV/DEV1.1/TP03/somme.c

20 lines
328 B
C
Raw Normal View History

2022-09-27 16:14:04 +02:00
#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;
}