DEV/BUT1/DEV1.1/Reels/interets.c

20 lines
284 B
C
Raw Normal View History

2024-02-01 13:55:03 +01:00
#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);
}
}