Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Basic Arithmetic | Section
Practice
Projects
Quizzes & Challenges
Quizer
Challenges
/
Essential R Programming for Absolute Beginners - 1768563985826

bookBasic Arithmetic

In R, arithmetic expressions can be written directly in the console, and the result is displayed without the need for an explicit print function.

Arithmetic Operators

You can use the following operators for basic arithmetic:

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

Example

1234
12 + 21 32 - 16 10 * 11 13 / 5
copy
Note
Note

Each new operation should start on a new line.

Oppgave

Swipe to start coding

Perform the following calculations using basic arithmetic operations:

  1. 30 + 24;
  2. 50 - 36;
  3. 19 * 7;
  4. 28 / 4.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

bookBasic Arithmetic

Sveip for å vise menyen

In R, arithmetic expressions can be written directly in the console, and the result is displayed without the need for an explicit print function.

Arithmetic Operators

You can use the following operators for basic arithmetic:

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

Example

1234
12 + 21 32 - 16 10 * 11 13 / 5
copy
Note
Note

Each new operation should start on a new line.

Oppgave

Swipe to start coding

Perform the following calculations using basic arithmetic operations:

  1. 30 + 24;
  2. 50 - 36;
  3. 19 * 7;
  4. 28 / 4.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 2
single

single

some-alt