Vidyalelo
R Programming · Q30

Control Structures in R Programming

Programming · R Programming · question 30

Q30

What is the output of the following R code: for (i in 1:5) if (i == 3) next; print(i)

A.
1, 2, 4, 5
Answer
B.
1, 2, 3, 4, 5
C.
2, 4
D.
0, 1, 2, 3, 4

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board