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 ----- --------- --------- --------- 996 3995.21 44.72 3995.21 995 3950.99 88.94 7946.20 994 3907.26 132.67 11853.46 993 3864.01 175.92 15717.46 992 3821.23 218.70 19538.70 991 3778.94 260.99 23317.63 990 3737.11 302.82 27054.74 989 3695.74 344.19 30750.49 988 3654.83 385.10 34405.32 987 3614.38 425.55 38019.70 986 3574.37 465.56 41594.07 985 3534.81 505.12 45128.88 984 3495.68 544.25 48624.55 983 3456.99 582.94 52081.54 982 3418.72 621.21 55500.26 981 3380.88 659.05 58881.14 980 3343.46 696.47 62224.59 979 3306.45 733.48 65531.04 978 3269.85 770.08 68800.89 977 3233.65 806.28 72034.54 976 3197.86 842.07 75232.40 975 3162.46 877.47 78394.86 974 3127.46 912.47 81522.32 973 3092.84 947.09 846