oerliCumulative sum

One number per line: running sum and running product.

i	x_i	cumsum	cumprod
1	3	3	3
2	-1	2	-3
3	4	6	-12
4	1	7	-12