Course Content

# R Introduction: Part I

1. Basic Syntax and Operations

R Introduction: Part I

## Challenge

Let's practice using newly created variables!

# Task

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

- Calculate the possible revenue in 4 years using variables
`initial_money`

,`interest_rate`

, and`n_years`

. Save the result within the`revenue`

variable. - 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