This course is archived · This course is now in read-only mode. You can’t register or make new submissions anymore, but your previous work and results are still available.

Sign in to test your solution.
sum_of_first_n_numbers <- function(n) { for (i in 1:n) { sum <- 0 sum <- sum + i } return(sum) }