Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
rupees is put in a bank at percent a year, with the interest added every year. Find the amount after years and the interest earned.
Each year multiplies the amount by 1 plus the rate. The power ** repeats the multiplication.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, compare your working with the solution.
Plan. Each year the amount is multiplied by . After years: .
amount = principal * (1 + rate) ** years. The brackets first, then the power, then the multiplication.Check. Simple interest would be . Compound interest is a little more, because the interest also earns interest. ✓
Log in to join the discussion.
Loading…