17 lines
389 B
C
17 lines
389 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(void) {
|
|
double capital ;
|
|
printf("Combien d'euros voulez vous investir?");
|
|
scanf("%f", capital);
|
|
|
|
capital = capital * 1,04;
|
|
printf("Après 1 an : %.2f euros\n", captital);
|
|
|
|
capital = capital * 1,04;
|
|
printf("Après 2 ans : %.2f euros\n", captital);
|
|
|
|
capital = capital * 1,04;
|
|
printf("Après 1 an : %.2f euros\n", captital);
|