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 ----- --------- --------- --------- 528 5207.09 320.41 5207.09 527 4905.24 622.26 10112.33 526 4620.90 906.60 14733.23 525 4353.04 1174.46 19086.27 524 4100.70 1426.80 23186.97 523 3863.00 1664.50 27049.97 522 3639.07 1888.43 30689.03 521 3428.12 2099.38 34117.15 520 3229.40 2298.10 37346.56 519 3042.20 2485.30 40388.76 518 2865.85 2661.65 43254.61 517 2699.73 2827.77 45954.34 516 2543.23 2984.27 48497.57 515 2395.81 3131.69 50893.37 514 2256.93 3270.57 53150.30 513 2126.10 3401.40 55276.40 512 2002.85 3524.65 57279.25 511 1886.75 3640.75 59166.01 510 1777.38 3750.12 60943.39 509 1674.35 3853.15 62617.75 508 1577.30 3950.20 64195.04 507 1485.86 4041.64 65680.91 506 1399.73 4127.77 67080.64 505 1318.59 4208.91 683