Log in to save your progress.
<< Back to problems
Note! The window is too narrow to use Pythonlab.dev. Use a device with a keyboard!

Loan with interest

Prerequisites: Basic course part I

Anton is going to buy a car and is considering taking out a car loan. The interest rate is 5%. Let Anton enter how large a loan he wants to take (whole kronor) and then print how large the loan will be after each year for five years if he neither pays interest nor amortization.

If the loan is 10 000 kr is the loan after 1 year: \(10000\cdot1.05\) kr and after two years the loan is \(10000\cdot1.05\cdot1.05\) kr or \(10000\cdot1.05^2\) kr.

Use the built-in function round() to round the loan to an integer. For example, round(2.75) is equal to 3. Print the loan amount without a unit.

Example input 1

10000

Example output 1

10500
11025
11576
12155
12763

Login to save your progress and your code.

Create

Write your code here.

-- Output from your program will be here --