im new to this sorry if this an easy task

Discussion in 'C' started by bugmenot, Sep 18, 2007.

  1. bugmenot

    bugmenot New Member

    Joined:
    Oct 18, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    how do i write a C program that inputs three different integers from the keyboard, and then prints the sum, the average, and the product of these numbers?

    ex:
    input:

    if the user was to input 11, 29 and 17.

    output:

    Input three different integers: 11 29 17
    Sum is 57
    Average is 19
    Product is 5423
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,336
    Likes Received:
    377
    Trophy Points:
    83
    Did you start on the work? if yes why don't you share the code which you think is a problem.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice