Q. Which of the following R code snippet stops loop after 20 iterations?
β
Correct Answer: (A)
for(i in 1:100) {
print(i)
if(i > 20) {
break
}
}
You must be Logged in to update hint/solution