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 ----- --------- --------- --------- 744 2142.34 121.37 2142.34 743 2027.48 236.23 4169.83 742 1918.78 344.93 6088.61 741 1815.91 447.80 7904.52 740 1718.55 545.16 9623.07 739 1626.41 637.30 11249.48 738 1539.21 724.50 12788.69 737 1456.69 807.02 14245.38 736 1378.59 885.12 15623.97 735 1304.68 959.03 16928.65 734 1234.73 1028.98 18163.38 733 1168.53 1095.18 19331.92 732 1105.88 1157.83 20437.80 731 1046.59 1217.12 21484.39 730 990.48 1273.23 22474.87 729 937.38 1326.33 23412.24 728 887.12 1376.59 24299.36 727 839.56 1424.15 25138.92 726 794.54 1469.17 25933.46 725 751.95 1511.76 26685.41 724 711.63 1552.08 27397.04 723 673.48 1590.23 28070.52 722 637.37 1626.34 28707.89 721 603.20 1660.51 293