Write a program that reads a specified number of floating point numbers from the user and prints their average. The first number input by the user will be an integer that specifies how many numbers are to be averaged. The rest of the input will be the floating point numbers to be averaged. Your output should be accurate to three decimal places. For example, if the input is:
8 1.39 5.5 9.6885 3.198 23.58684 17 -6.58 16.35
your output should be:
average = 8.767.
I'm not sure if I am getting something mixed up inside of the loop or somewhere else.
Sorry about the delay response. I just got out of classes. And the program worked. Thanks so much! The problem I was having is that I was trying to use your "num" where you have "i" in the for parameter. I understand why that wasn't working now. Thanks again!