1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Average Function

Discussion in 'C' started by TheDude23, Apr 6, 2012.

  1. TheDude23

    TheDude23 New Member

    Joined:
    Apr 6, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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

    Thanks!
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    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.
     

Share This Page