Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main()
- {
- unsigned int n, inflation=2;
- double reserve=250, consommation=20;
- for(n=0;n<15;n++)
- {
- reserve-=consommation;
- printf ("A l'année %d, il reste %.2f avec une inflation de %d%\n", n+1, reserve+consommation,inflation);
- consommation*=((inflation/100.0)+1);
- }
- printf ("FIN DES OPERATIONS\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement