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 ----- --------- --------- --------- 1008 2865.31 43.64 2865.31 1007 2822.32 86.63 5687.63 1006 2779.98 128.97 8467.61 1005 2738.27 170.68 11205.88 1004 2697.19 211.76 13903.08 1003 2656.73 252.22 16559.80 1002 2616.87 292.08 19176.67 1001 2577.61 331.34 21754.28 1000 2538.94 370.01 24293.22 999 2500.85 408.10 26794.07 998 2463.33 445.62 29257.40 997 2426.37 482.58 31683.78 996 2389.97 518.98 34073.75 995 2354.12 554.83 36427.87 994 2318.80 590.15 38746.67 993 2284.01 624.94 41030.68 992 2249.75 659.20 43280.42 991 2215.99 692.96 45496.42 990 2182.75 726.20 47679.17 989 2150.00 758.95 49829.17 988 2117.75 791.20 51946.92 987 2085.98 822.97 54032.89 986 2054.68 854.27 56087.57 985 2023.85 88