Basic 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
123412 + 21 32 - 16 10 * 11 13 / 5
Each new operation should start on a new line.
Swipe to start coding
Perform the following calculations using basic arithmetic operations:
30 + 24;50 - 36;19 * 7;28 / 4.
Lösning
Tack för dina kommentarer!
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 2.27
Basic Arithmetic
Svep för att visa menyn
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
Each new operation should start on a new line.
Swipe to start coding
Perform the following calculations using basic arithmetic operations:
30 + 24;50 - 36;19 * 7;28 / 4.
Lösning
Tack för dina kommentarer!
single