Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double last_payment, total = 1000 ;
- int count = 0;
- cout << "With this, you can figure out how much will go towards your payment,"
- << " and how much will go into your interest payment.";
- while (total>50);
- {
- total = total - (50 - total * 0.15);
- count++;
- last_payment = total;
- }
- cout << "After " << last_payment << " months,\n";
- cout << "You will have paid " << last_payment << " towards your total.\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement