21 lines
438 B
C
21 lines
438 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main(void){
|
||
|
int n;
|
||
|
double x;
|
||
|
|
||
|
printf("Combien veux-tu investir :\n");
|
||
|
n = scanf("%lf",&x);
|
||
|
printf(" 1 ans : %f\n", x*0.04);
|
||
|
printf(" 2 ans : %f\n", x*(0.04*2));
|
||
|
printf(" 3 ans : %f\n", x*(0.04*3));
|
||
|
printf(" 4 ans : %f\n", x*(0.04*4));
|
||
|
printf(" 5 ans : %f\n", x*(0.04*5));
|
||
|
printf(" 6 ans : %f\n", x*(0.04*6));
|
||
|
printf(" 7 ans : %f\n", x*(0.04*7));
|
||
|
|
||
|
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|