Advertisement
joaoantoniodornelas

Prática 1 - Questão 1 - 2014/2

Aug 28th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. #include<stdlib.h>
  4.  
  5. int main(){
  6.  
  7.     float total = 1000;
  8.     total  *= 1.006;
  9.     total = (total + 800) * 1.006;
  10.     total = (total - 500) * 1.006;
  11.     printf("\n\nO saldo total no quarto mes e igual a %.2f reais\n\n", total);
  12.     system ("PAUSE");
  13.     return 0;
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement