2022-09-14 18:00:01 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
int main(void){
|
|
|
|
double n=0;
|
|
|
|
int annee=1;
|
|
|
|
printf("saisir la somme a investir: ");
|
2022-09-27 16:14:04 +02:00
|
|
|
scanf("%lf",&n);
|
2022-09-14 18:00:01 +02:00
|
|
|
n= n + (n*0.04);
|
|
|
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
|
|
|
annee+=1;
|
|
|
|
n= n + (n*0.04);
|
|
|
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
|
|
|
annee+=1;
|
|
|
|
n= n + (n*0.04);
|
|
|
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
|
|
|
annee+=1;
|
|
|
|
n= n + (n*0.04);
|
|
|
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
|
|
|
annee+=1;
|
|
|
|
n= n + (n*0.04);
|
|
|
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
|
|
|
annee+=1;
|
|
|
|
n= n + (n*0.04);
|
|
|
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
|
|
|
annee+=1;
|
|
|
|
n= n + (n*0.04);
|
|
|
|
printf("somme au bout de %d annee(s): %9.4f \n", annee, n);
|
|
|
|
annee+=1;
|
2022-09-27 16:14:04 +02:00
|
|
|
return EXIT_SUCCESS;
|
2022-09-14 18:00:01 +02:00
|
|
|
}
|