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 ----- --------- --------- --------- 600 688.52 11.48 688.52 599 677.24 22.76 1365.76 598 666.14 33.86 2031.90 597 655.21 44.79 2687.11 596 644.47 55.53 3331.59 595 633.91 66.09 3965.49 594 623.52 76.48 4589.01 593 613.29 86.71 5202.31 592 603.24 96.76 5805.55 591 593.35 106.65 6398.90 590 583.62 116.38 6982.52 589 574.06 125.94 7556.58 588 564.65 135.35 8121.23 587 555.39 144.61 8676.62 586 546.28 153.72 9222.90 585 537.33 162.67 9760.23 584 528.52 171.48 10288.75 583 519.86 180.14 10808.61 582 511.33 188.67 11319.94 581 502.95 197.05 11822.89 580 494.71 205.29 12317.60 579 486.60 213.40 12804.20 578 478.62 221.38 13282.82 577 470.77 229.23 137