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 ----- --------- --------- --------- 648 322.77 16.70 322.77 647 306.89 32.58 629.66 646 291.79 47.68 921.46 645 277.44 62.04 1198.89 644 263.79 75.69 1462.68 643 250.81 88.66 1713.49 642 238.47 101.00 1951.96 641 226.74 112.73 2178.70 640 215.58 123.89 2394.28 639 204.98 134.50 2599.26 638 194.89 144.58 2794.15 637 185.30 154.17 2979.45 636 176.19 163.29 3155.64 635 167.52 171.95 3323.16 634 159.28 180.20 3482.44 633 151.44 188.03 3633.88 632 143.99 195.48 3777.87 631 136.91 202.57 3914.77 630 130.17 209.30 4044.95 629 123.77 215.71 4168.71 628 117.68 221.80 4286.39 627 111.89 227.59 4398.28 626 106.38 233.09 4504.66 625 101.15 238.32 46