Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Please enter the monthly payment: Please enter the monthly payment: Please enter the monthly payment: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest
JOJ Answer
Please enter the monthly payment: Please enter the interest rate: Please enter the duration of the loan, in years: Month Principal Interest Balance ----- --------- --------- --------- 336 6281.58 169.39 6281.58 335 6116.64 334.33 12398.22 334 5956.03 494.94 18354.26 333 5799.64 651.33 24153.90 332 5647.36 803.61 29801.26 331 5499.07 951.90 35300.33 330 5354.68 1096.29 40655.00 329 5214.08 1236.89 45869.08 328 5077.17 1373.80 50946.25 327 4943.85 1507.12 55890.10 326 4814.04 1636.93 60704.14 325 4687.63 1763.34 65391.77 324 4564.55 1886.42 69956.31 323 4444.69 2006.28 74401.00 322 4327.98 2122.99 78728.99 321 4214.34 2236.63 82943.33 320 4103.68 2347.29 87047.01 319 3995.93 2455.04 91042.94 318 3891.00 2559.97 94933.95 317 3788.84 2662.13 98722.78 316 3689.35 2761.62 102412.13 315 3592.48 2858.49 106004.61 314 3498.15 2952.82 109502.75 313 3406.29 3044.68 1129