2025-09-13 17:37:50 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2025-09-16 15:53:59 +02:00
|
|
|
/*EXO
|
2025-09-13 17:37:50 +02:00
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
int n;
|
|
|
|
double x;
|
|
|
|
char v;
|
|
|
|
printf("Saisir un réel");
|
|
|
|
n = scanf("%lf\n",&x);
|
|
|
|
v = getchar();
|
2025-09-16 15:53:59 +02:00
|
|
|
printf("Sa forme scientifque : %e\n",n);
|
2025-09-13 17:37:50 +02:00
|
|
|
printf("5 fois de suites ; %c,%c,%c,%c,%c",v);
|
2025-09-16 15:53:59 +02:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}*/
|
2025-09-13 17:37:50 +02:00
|
|
|
|
2025-09-16 15:53:59 +02:00
|
|
|
int main(void){
|
|
|
|
int epargne;
|
|
|
|
double x;
|
|
|
|
printf("Combien veux-tu investir : ");
|
|
|
|
epargne = scanf("%lf",&x);
|
|
|
|
printf("après 1 an : %9.4f\n",epargne + 0.04);
|
|
|
|
printf("après 2 ans: %9.4f\n",epargne + (0.04*2));
|
|
|
|
printf("après 3 ans: %9.4f\n",epargne + (0.04*3));
|
|
|
|
printf("après 4 ans: %9.4f\n",epargne + (0.04*4));
|
|
|
|
printf("après 5 ans: %9.4f\n",epargne + (0.04*5));
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|