Q. What will be the output of the following R code?
> f <- function(num) {
+ for(i in seq_len(num)) {
+ cat("Hello, world!\n")
+ }
+ }
> f(3)
β
Correct Answer: (B)
Hello, world!
Hello, world!
Hello, world!