DEV_BUT1/DEV1.1/TP03/investissement.c

20 lines
484 B
C

#include <stdio.h>
#include <stdlib.h>
int main(void) {
double investi;
scanf("%lf", &investi);
investi = investi * 1.04;
printf("%.4f/n", investi);
investi = investi * 1.04;
printf("%.4f/n", investi);
investi = investi * 1.04;
printf("%.4f/n", investi);
investi = investi * 1.04;
printf("%.4f/n", investi);
investi = investi * 1.04;
printf("%.4f/n", investi);
investi = investi * 1.04;
printf("%.4f/n", investi);
investi = investi * 1.04;
printf("%.4f/n", investi);
}