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 ----- --------- --------- --------- 588 8826.88 66.90 8826.88 587 8760.48 133.30 17587.36 586 8694.58 199.20 26281.95 585 8629.18 264.60 34911.13 584 8564.27 329.51 43475.40 583 8499.85 393.93 51975.25 582 8435.91 457.87 60411.16 581 8372.46 521.32 68783.61 580 8309.48 584.30 77093.09 579 8246.97 646.81 85340.06 578 8184.94 708.84 93525.00 577 8123.37 770.41 101648.36 576 8062.26 831.52 109710.62 575 8001.62 892.16 117712.24 574 7941.43 952.35 125653.67 573 7881.69 1012.09 133535.35 572 7822.40 1071.38 141357.76 571 7763.56 1130.22 149121.32 570 7705.16 1188.62 156826.48 569 7647.20 1246.58 164473.68 568 7589.68 1304.10 172063.35 567 7532.59 1361.19 179595.94 566 7475.92 1417.86 187071.87 565 7419.69 1474.09 1944