Search:

Type: Posts; User: DavidFongs

Search: Search took 0.16 seconds.

  1. Replies
    6
    Views
    2,501

    Re: Im so confused! Counting and Summing

    Ok... I just won't store the numbers I read in, in an array because that isn't a requirement.

    Hey look Zula implemented it. I'm sure it was really hard!
  2. Replies
    6
    Views
    2,501

    Re: Im so confused! Counting and Summing

    Why read the file twice? Why not just read it once, sum the numbers you read, and keep a counter of how many numbers you have read?
Results 1 to 2 of 2