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 interest rate: Please enter the interest rate: Please enter the duration of the loan, in years: Month Principal Interest Balance ----- --------- --------- --------- 108 4971.49 49.71 4971.49 107 4922.26 98.94 9893.75 106 4873.53 147.67 14767.27 105 4825.27 195.93 19592.55 104 4777.50 243.70 24370.05 103 4730.20 291.00 29100.25 102 4683.36 337.84 33783.61 101 4636.99 384.21 38420.60 100 4591.08 430.12 43011.69 99 4545.63 475.57 47557.31 98 4500.62 520.58 52057.93 97 4456.06 565.14 56514.00 96 4411.94 609.26 60925.94 95 4368.26 652.94 65294.19 94 4325.01 696.19 69619.20 93 4282.19 739.01 73901.39 92 4239.79 781.41 78141.18 91 4197.81 823.39 82338.99 90 4156.25 864.95 86495.23 89 4115.10 906.10 90610.33 88 4074.35 946.85 94684.68 87 4034.01 987.19 98718.70 86 3994.07