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 ----- --------- --------- --------- 312 9529.36 93.13 9529.36 311 9437.13 185.36 18966.49 310 9345.80 276.69 28312.29 309 9255.34 367.15 37567.63 308 9165.77 456.72 46733.40 307 9077.06 545.43 55810.46 306 8989.21 633.28 64799.67 305 8902.21 720.28 73701.88 304 8816.05 806.44 82517.93 303 8730.72 891.77 91248.65 302 8646.23 976.26 99894.88 301 8562.54 1059.95 108457.42 300 8479.67 1142.82 116937.09 299 8397.60 1224.89 125334.70 298 8316.33 1306.16 133651.03 297 8235.84 1386.65 141886.87 296 8156.13 1466.36 150043.00 295 8077.19 1545.30 158120.20 294 7999.02 1623.47 166119.22 293 7921.60 1700.89 174040.82 292 7844.94 1777.55 181885.76 291 7769.01 1853.48 189654.77 290 7693.82 1928.67 197348.59 289 7619.36 2003.13 2049