help me please
i need to find the sum and average for a set of uncounted set of test scores via loops. The last number in the data will be zero and should not be processed. Pretend that you were given an external file that had the numbers below AND a zero then 4 more numbers.But, you have to do this via file input and not n=by just typing the numbers in(lets say the files name is"rt54.txt"
Also, it should look like the following once completed:
The sum of the numbers = 97
The number of scores = 10
The average of the numbers = 9.7
First of all, how can i make it stop looping so that the last number in the data will be zero and should not be processed?
Re: help me please
So, read input until the input is null! What have you tried?