0
/ 6.0
Write a function which creates a cumulative sum of numbers in a list.
This is a sequence of partial sums: the first number is unchanged;...
Write a function which creates a cumulative sum of numbers in a list.
This is a sequence of partial sums: the first number is unchanged; the second number is the sum of the first and second; the third number is the sum of the first, second, and third; and so on.
Return the resulting list of cumulative sums.
Examples:
cumulativeSum([1,4,4,7]) -> [1,5,9,16]
Your feedback will appear here when you check your answer.