Here's a method in C# that takes an array of 20 integers and returns their cumulative sum chart:
main.cs245 chars14 lines
To use this method, you would create an array of 20 integers, call the method with the array as the argument, and then do something with the returned cumulative sum chart:
main.cs199 chars9 lines
This would output the following cumulative sum chart:
main.cs58 chars21 lines
gistlibby LogSnag