Exercise 6: Arithmetic Operators

Let's test your understanding of Arithmetic Operators.

Problem Statement

Print the answer to the following equation using R language.

2 + 4 * 9 - 8

Use cat() to display your answer to the equation or the test case will not pass.

Sample Output

30

Test Yourself

Write your code in the given area. If you get stuck, you can look at the solution.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy