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 monthly payment: Please enter the monthly payment: Please enter the interest rate: Please enter the duration of the loan, in years: Please enter the duration of the loan, in years: Month Principal Interest Balance ----- --------- --------- --------- 792 480.00 20.00 480.00 791 460.80 39.20 940.80 790 442.37 57.63 1383.17 789 424.67 75.33 1807.84 788 407.69 92.31 2215.53 787 391.38 108.62 2606.91 786 375.72 124.28 2982.63 785 360.69 139.31 3343.33 784 346.27 153.73 3689.59 783 332.42 167.58 4022.01 782 319.12 180.88 4341.13 781 306.35 193.65 4647.48 780 294.10 205.90 4941.58 779 282.34 217.66 5223.92 778 271.04 228.96 5494.96 777 260.20 239.80 5755.16 776 249.79 250.21 6004.96 775 239.80 260.20 6244.76 774 230.21 269.79 6474.97 773 221.00 279.00 6695.97 772 212.16