Advertisement
gpsgiraldi

2024_listaC_calculopoupança

Apr 20th, 2024 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | Source Code | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6.     float Pcte,itaxa,nmeses,vacumulado,alfa;
  7.     printf("Insira valores para a aplicação mensal, a taxa e quantos meses: ");
  8.     scanf("%f %f %f",&Pcte,&itaxa,&nmeses);
  9.     alfa = pow((1+itaxa),(nmeses+1));
  10.     vacumulado = (Pcte*(alfa-1))/itaxa;
  11.     printf("%.2f ",vacumulado);
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement