Monday, March 16, 2015

Cumulative

 

Coding for cumulative is trickier than it looks: all variables need to be given an initial value,
but one has to keep the y at 0 outside the loop to get a true cumulative.

No comments: