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 monthly payment: Please enter the monthly payment: Please enter the monthly payment: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest rate: Please enter the interest
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 ----- --------- --------- --------- 420 9311.01 204.47 9311.01 419 9110.93 404.55 18421.93 418 8915.14 600.34 27337.08 417 8723.57 791.91 36060.65 416 8536.11 979.37 44596.76 415 8352.68 1162.80 52949.44 414 8173.20 1342.28 61122.64 413 7997.57 1517.91 69120.20 412 7825.71 1689.77 76945.91 411 7657.55 1857.93 84603.46 410 7493.00 2022.48 92096.45 409 7331.98 2183.50 99428.44 408 7174.43 2341.05 106602.86 407 7020.26 2495.22 113623.12 406 6869.40 2646.08 120492.53 405 6721.79 2793.69 127214.32 404 6577.35 2938.13 133791.67 403 6436.01 3079.47 140227.68 402 6297.71 3217.77 146525.39 401 6162.38 3353.10 152687.77 400 6029.96 3485.52 158717.72 399 5900.38 3615.10 164618.11 398 5773.59 3741.89 170391.70 397 5649.53 3865.95 1760