20 lines
284 B
C
20 lines
284 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
|
||
|
float argent = 0;
|
||
|
|
||
|
printf("Combien d'euros souhaitez vous investir ?\n");
|
||
|
|
||
|
scanf("%f", &argent);
|
||
|
|
||
|
for (int i = 1; i < 8; i++)
|
||
|
{
|
||
|
|
||
|
argent = argent + (argent * 0.04);
|
||
|
printf("Année %d: %f\n", i, argent);
|
||
|
}
|
||
|
}
|