Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.  
  6.     double last_payment, total = 1000 ;
  7.     int count = 0;
  8.     cout << "With this, you can figure out how much will go towards your payment,"
  9.          << " and how much will go into your interest payment.";
  10.              
  11.     while (total>50);
  12. {    
  13.     total = total - (50 - total * 0.15);
  14.     count++;
  15.     last_payment = total;
  16. }
  17.     cout << "After " << last_payment << " months,\n";
  18.     cout << "You will have paid " << last_payment << " towards your total.\n";
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement