Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- #include <locale>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Portuguese");
- double VF, JUROS ;
- int X, Y, Z;
- cout << "Forneça a quantidade de dias para o lote mudar" << endl;
- cin >> X;
- cout << "Forneça o aumento percentual em cima do valor inicial que ocorre a cada mudanca de lote" << endl;
- cin >> Y;
- Z = 42 / X;
- JUROS = (((Y / 100.0) * 78.83) * Z);//100.0
- VF = JUROS + 78.83;
- cout << fixed << setprecision(2);
- cout << "R$ " << VF << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement