20 lines
315 B
C
20 lines
315 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
|
||
|
double somme = 0;
|
||
|
double saisie = 0;
|
||
|
|
||
|
for (int i = 1; i <= 5; i++)
|
||
|
{
|
||
|
printf("Séléctionnez le réel n°%d \n", i);
|
||
|
scanf(" %lf", &saisie);
|
||
|
|
||
|
somme = somme + saisie;
|
||
|
}
|
||
|
|
||
|
printf("Somme finale : %lf\n", somme);
|
||
|
}
|