Search:

Type: Posts; User: DavidFongs

Search: Search took 0.15 seconds.

  1. Replies
    8
    Views
    2,608

    Re: help using for while loop

    You are dividing by numaount when calculating average. You initialize numamount to 0, then it never changes. You can't divide by 0
  2. Replies
    8
    Views
    2,608

    Re: help using for while loop

    In your do while loop, you are continuing as long as data is not equal to zero, but in the description of your assignment, it says to read numbers, until the user enters a negative number.
Results 1 to 2 of 2