R Basics
Write an R function solution(x) that returns the sum of all elements in the numeric vector x.
Example
solution(c(1, 2, 3, 4, 5)) → 15
solution.py
14px
📊 Test Results
Run your code to see test results here.