Write a program to calculate the cumulative sum of a numeric vector.
MediumProblem Statement
Write a program to calculate the cumulative sum of a numeric vector.
Sample Input
Vector: [1, 2, 3, 4, 5]
Sample Output
Cumulative Sum: 1 3 6 10 15
Limits
Time: 2s · Memory: 256 MB