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 ----- --------- --------- --------- 120 99.17 0.83 99.17 119 98.35 1.65 197.53 118 97.54 2.46 295.07 117 96.73 3.27 391.80 116 95.94 4.06 487.74 115 95.14 4.86 582.88 114 94.36 5.64 677.24 113 93.58 6.42 770.81 112 92.80 7.20 863.62 111 92.04 7.96 955.65 110 91.28 8.72 1046.93 109 90.52 9.48 1137.45 108 89.77 10.23 1227.22 107 89.03 10.97 1316.26 106 88.30 11.70 1404.55 105 87.57 12.43 1492.12 104 86.84 13.16 1578.96 103 86.12 13.88 1665.08 102 85.41 14.59 1750.50 101 84.71 15.29 1835.20 100 84.01 15.99 1919.21 99 83.31 16.69 2002.52 98 82.62 17.38 2085.14 97 81.94 18.06 2167.