Basic Arithmetic | Basic Syntax and Operations
R Introduction: Part I

## Basic Arithmetic

Unlike many other programming languages, R doesn't need a specific function to display output. So, let's begin our R journey with some simple arithmetic to get started.

In R, you can perform basic arithmetic using the following operators:

• `+` for addition;
• `-` for subtraction;
• `*` for multiplication;
• `/` for division.

For example, let's compute a few mathematical expressions:

As you can see, there's nothing complicated here.

Each new operation should start on a new line.

Perform the following calculations using basic arithmetic operations:

1. `30 + 24`;
2. `50 - 36`;
3. `19 * 7`.

Everything was clear?

Section 1. Chapter 2

Course Content

R Introduction: Part I

# R Introduction: Part I

## Basic Arithmetic

Unlike many other programming languages, R doesn't need a specific function to display output. So, let's begin our R journey with some simple arithmetic to get started.

In R, you can perform basic arithmetic using the following operators:

• `+` for addition;
• `-` for subtraction;
• `*` for multiplication;
• `/` for division.

For example, let's compute a few mathematical expressions:

As you can see, there's nothing complicated here.

Each new operation should start on a new line.

1. `30 + 24`;
2. `50 - 36`;
3. `19 * 7`.