Beginner
R
Q25 / 100
What does the "if-else" structure look like in R for checking if x is greater than 10?
Correct! Well done.
Incorrect.
The correct answer is B) if (x > 10) { print("big") } else { print("small") }
B
Correct Answer
if (x > 10) { print("big") } else { print("small") }
Explanation
R uses C-like syntax for conditionals: "if (condition) { ... } else { ... }".
Progress
25/100