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 ----- --------- --------- --------- 564 6808.75 236.85 6808.75 563 6579.87 465.73 13388.63 562 6358.68 686.92 19747.31 561 6144.93 900.67 25892.24 560 5938.36 1107.24 31830.59 559 5738.74 1306.86 37569.33 558 5545.82 1499.78 43115.15 557 5359.39 1686.21 48474.54 556 5179.23 1866.37 53653.78 555 5005.13 2040.47 58658.90 554 4836.87 2208.73 63495.77 553 4674.28 2371.32 68170.05 552 4517.15 2528.45 72687.20 551 4365.30 2680.30 77052.49 550 4218.55 2827.05 81271.05 549 4076.74 2968.86 85347.79 548 3939.70 3105.90 89287.49 547 3807.26 3238.34 93094.75 546 3679.28 3366.32 96774.02 545 3555.59 3490.01 100329.61 544 3436.07 3609.53 103765.68 543 3320.56 3725.04 107086.24 542 3208.94 3836.66 110295.18 541 3101.06 3944.54 1133