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 ----- --------- --------- --------- 936 2232.66 46.88 2232.66 935 2186.75 92.79 4419.42 934 2141.78 137.76 6561.20 933 2097.74 181.80 8658.94 932 2054.60 224.94 10713.54 931 2012.35 267.19 12725.89 930 1970.97 308.57 14696.86 929 1930.44 349.10 16627.30 928 1890.74 388.80 18518.04 927 1851.86 427.68 20369.90 926 1813.78 465.76 22183.68 925 1776.48 503.06 23960.16 924 1739.95 539.59 25700.11 923 1704.17 575.37 27404.28 922 1669.12 610.42 29073.40 921 1634.80 644.74 30708.20 920 1601.18 678.36 32309.39 919 1568.26 711.28 33877.64 918 1536.01 743.53 35413.65 917 1504.42 775.12 36918.07 916 1473.48 806.06 38391.55 915 1443.18 836.36 39834.74 914 1413.51 866.03 41248.24 913 1384.44 895.10 426