Sektion 1. Kapitel 2
single
Basic Arithmetic
Stryg for at vise menuen
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
123412 + 21 32 - 16 10 * 11 13 / 5
Note
Each new operation should start on a new line.
Opgave
Swipe to start coding
Perform the following calculations using basic arithmetic operations:
30 + 24;50 - 36;19 * 7;28 / 4.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat