You are dividing by numaount when calculating average. You initialize numamount to 0, then it never changes. You can't divide by 0
Type: Posts; User: DavidFongs
You are dividing by numaount when calculating average. You initialize numamount to 0, then it never changes. You can't divide by 0
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.