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 ----- --------- --------- --------- 120 4394.65 354.74 4394.65 119 4066.40 682.99 8461.05 118 3762.68 986.71 12223.73 117 3481.63 1267.76 15705.36 116 3221.58 1527.81 18926.94 115 2980.96 1768.43 21907.90 114 2758.30 1991.09 24666.20 113 2552.28 2197.11 27218.48 112 2361.64 2387.75 29580.13 111 2185.25 2564.14 31765.38 110 2022.03 2727.36 33787.41 109 1871.00 2878.39 35658.41 108 1731.25 3018.14 37389.66 107 1601.94 3147.45 38991.60 106 1482.29 3267.10 40473.88 105 1371.57 3377.82 41845.46 104 1269.13 3480.26 43114.58 103 1174.33 3575.06 44288.92 102 1086.62 3662.77 45375.54 101 1005.46 3743.93 46380.99 100 930.36 3819.03 47311.35 99 860.87 3888.52 48172.22 98 796.57 3952.82 48968.79 97 737.07 4012.32 49705.