Looping question

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??

You either have the user input the amount they are going to enter first or have a special number/word to stop giving numbers.
Thank you!!
Topic archived. No new replies allowed.