Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5. unsigned int n, inflation=2;
  6. double reserve=250, consommation=20;
  7. for(n=0;n<15;n++)
  8. {
  9. reserve-=consommation;
  10. printf ("A l'année %d, il reste %.2f avec une inflation de %d%\n", n+1, reserve+consommation,inflation);
  11. consommation*=((inflation/100.0)+1);
  12. }
  13. printf ("FIN DES OPERATIONS\n");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement