Cumulative Sum easy
vectors

Write an R function solution(x) that returns the cumulative sum of the numeric vector x.

Example

solution(c(1, 2, 3))  →  c(1, 3, 6)
solution.py
14px
📊 Test Results
Run your code to see test results here.