ChallengeChallenge

Let's practice using newly created variables!

Task

Continuing the previous chapter task, let's calculate the revenue in 4 years using only variables.

  1. Calculate the possible revenue in 4 years using variables initial_money, interest_rate, and n_years. Save the result within the revenue variable.
  2. Output the calculated value of revenue in the following format:

To calculate revenue use the following formula:

initial_money*(1 + interest_rate/100)^n_years.

Everything was clear?

Section 1. Chapter 8
toggle bottom row