Advertisement
esquilo10

Desafio Maycon

Mar 13th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4. #include <locale>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.     setlocale(LC_ALL, "Portuguese");
  11.     double VF, JUROS ;
  12.     int X, Y, Z;
  13.  
  14.     cout << "Forneça a quantidade de dias para o lote mudar" << endl;
  15.     cin >> X;
  16.     cout << "Forneça o aumento percentual em cima do valor inicial que ocorre a cada mudanca de lote" << endl;
  17.     cin >> Y;
  18.  
  19.     Z = 42 / X;
  20.     JUROS = (((Y / 100.0) * 78.83) * Z);//100.0
  21.     VF = JUROS + 78.83;
  22.     cout << fixed << setprecision(2);
  23.     cout << "R$ " << VF << endl;
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement