Search:

Type: Posts; User: GregBrannon

Search: Search took 0.11 seconds.

  1. Replies
    11
    Views
    1,426

    [SOLVED] Re: Average and counting problem (sorta)

    'sum' needs to sum all numbers entered by the user, not just the last number entered, which is what your code currently does. That's why it's zero.

    In words, each time through the loop, sum =...
  2. Replies
    11
    Views
    1,426

    [SOLVED] Re: Average and counting problem (sorta)

    Check your formula for 'sum.' What is it currently the sum of? Is that 'sum' going to give you the desired average?

    Hint: The formula for 'sum' (whatever it is) should be inside the do/while...
  3. Replies
    11
    Views
    1,426

    [SOLVED] Re: Average and counting problem (sorta)

    Can you give an example run to show what you mean? Copy the run from the console output and post it. Include a description of how the run is different than you expect.
Results 1 to 3 of 3