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