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 test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Please enter the test choice: Plea
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 ----- --------- --------- --------- 624 7359.20 17.16 7359.20 623 7342.08 34.28 14701.28 622 7325.00 51.36 22026.28 621 7307.96 68.40 29334.24 620 7290.96 85.40 36625.20 619 7274.00 102.36 43899.20 618 7257.08 119.28 51156.28 617 7240.20 136.16 58396.47 616 7223.35 153.01 65619.83 615 7206.55 169.81 72826.38 614 7189.78 186.58 80016.16 613 7173.06 203.30 87189.22 612 7156.37 219.99 94345.59 611 7139.72 236.64 101485.32 610 7123.12 253.24 108608.43 609 7106.54 269.82 115714.97 608 7090.01 286.35 122804.99 607 7073.52 302.84 129878.51 606 7057.06 319.30 136935.57 605 7040.65 335.71 143976.22 604 7024.27 352.09 151000.49 603 7007.93 368.43 158008.41 602 6991.63 384.73 165000.04 601 6975.36 401.00 1719