Looping question

Oct 6, 2017 at 5:37am
Use input statements to retrieve any number of real values from the user and then calculate and display the average of the numbers entered.

I don't have any code for this since I have no idea where to begin. I understand the rules behind the formatting, but I don't understand the part of getting an average from a possibly infinite input. Any ways to solve this??

Oct 6, 2017 at 5:52am
You either have the user input the amount they are going to enter first or have a special number/word to stop giving numbers.
Oct 6, 2017 at 7:04am
Thank you!!
Topic archived. No new replies allowed.