Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.09 seconds.

  1. Replies
    9
    Views
    2,921

    Re: Cumulative sum of entries

    That's what I would expect your output to be. If you want to print them out on the same line, you're going to have to save them to an array or a String and wait until after the loop to print them.
  2. Replies
    9
    Views
    2,921

    Re: Cumulative sum of entries

    I'm not sure what you mean by simpler, and I'm not convinced that code does what your example says it does.
  3. Replies
    9
    Views
    2,921

    Re: Cumulative sum of entries

    How would you do this by hand, without a computer? If somebody tells you a list of numbers, how would you keep adding them up? Write out instructions in English, that you could give to your dumbest...
Results 1 to 3 of 3