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 monthly payment: Please enter the monthly payment: Please enter the interest rate: Please enter the duration of the loan, in years: Month Principal Interest Balance ----- --------- --------- --------- 144 97.02 3.40 97.02 143 93.74 6.68 190.77 142 90.57 9.85 281.34 141 87.51 12.91 368.85 140 84.55 15.87 453.40 139 81.69 18.73 535.09 138 78.93 21.49 614.02 137 76.26 24.16 690.28 136 73.68 26.74 763.96 135 71.19 29.23 835.15 134 68.78 31.64 903.94 133 66.46 33.96 970.39 132 64.21 36.21 1034.60 131 62.04 38.38 1096.64 130 59.94 40.48 1156.58 129 57.91 42.51 1214.49 128 55.95 44.47 1270.45 127 54.06 46.36 1324.51 126 52.23 48.19 1376.74 125 50.47 49.95 1427.2