fin TP
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/*EXO 1*/
|
||||
/*EXO
|
||||
|
||||
int main(void) {
|
||||
int n;
|
||||
@@ -9,9 +9,21 @@ int main(void) {
|
||||
char v;
|
||||
printf("Saisir un réel");
|
||||
n = scanf("%lf\n",&x);
|
||||
printf("Sa forme scientifque : %e\n",n),
|
||||
v = getchar();
|
||||
printf("Sa forme scientifque : %e\n",n);
|
||||
printf("5 fois de suites ; %c,%c,%c,%c,%c",v);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}*/
|
||||
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user