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 ----- --------- --------- --------- 372 2752.74 53.99 2752.74 371 2699.78 106.95 5452.52 370 2647.85 158.88 8100.36 369 2596.91 209.82 10697.27 368 2546.95 259.78 13244.22 367 2497.96 308.77 15742.18 366 2449.90 356.83 18192.08 365 2402.77 403.96 20594.85 364 2356.55 450.18 22951.40 363 2311.22 495.51 25262.62 362 2266.76 539.97 27529.37 361 2223.15 583.58 29752.52 360 2180.38 626.35 31932.90 359 2138.44 668.29 34071.34 358 2097.30 709.43 36168.64 357 2056.95 749.78 38225.60 356 2017.38 789.35 40242.98 355 1978.58 828.15 42221.56 354 1940.51 866.22 44162.07 353 1903.18 903.55 46065.25 352 1866.57 940.16 47931.82 351 1830.66 976.07 49762.49 350 1795.45 1011.28 51557.93 349 1760.91 1045.82 533