| about | help | code help+videos | done | prefs |
mortgage
Suppose we get a loan for "base" dollars, which increases by "interest" percent at the beginning of each month. We pay "payment" dollars at each month's end. How much do we still owe after "months" months have passed? mortgage(40, 10, 10, 1) → 34.0 mortgage(100, 5, 10, 1) → 95.0 mortgage(100, 5, 10, 2) → 89.75 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 210
Copyright Nick Parlante 2017 - privacy