Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Average Function (http://www.go4expert.com/forums/average-function-t28143/)

TheDude23 6Apr2012 10:07

Average Function
I need some help working on a program. I am to pass 2-10 numbers which calculate an average. I don't have to pass all the numbers but have to pass at least 2. I can pass either all integers or all float values. Is anyone willing to help me in the right direction with this program? I AM NOT TRYING TO GET ANYONE TO DO MY HW NEED HELP GETTING IT GOING


xpi0t0s 17Apr2012 15:36

Re: Average Function
How far have you got and where are you stuck?
How do you plan to terminate the input loop? You could ask how many numbers are to be input, or you could read until a terminating value (zero for example) is input.

All times are GMT +5.5. The time now is 17:40.