Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- main()
- {
- unsigned int n;
- double total, annuel=20;
- for(n=0;n<15;n++)
- {
- total = total + annuel;
- annuel = 1.02 * annuel;
- printf ("Pour l'année %d, le total consommé depuis le début aura été de %lf. \n", n, total);
- }
- printf ("FIN DES OPERATIONS\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement