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

How can I read all the loops, in even odd.?

Discussion in 'C' started by nairazc621, Mar 1, 2011.

  1. nairazc621

    nairazc621 New Member

    Joined:
    Feb 21, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    (correct output)
    Enter #: 2
    # 1: 1
    # 2: 2

    The odd is 1
    The even is 2


    - but mine is... ( it only read the last input :() (without using Array)
    Enter #: 2
    # 1: 1
    # 2: 2

    The even is 2


    Can someone help me with this problem??:phone:
     
  2. lionaneesh

    lionaneesh Active Member

    Joined:
    Mar 21, 2010
    Messages:
    848
    Likes Received:
    224
    Trophy Points:
    43
    Occupation:
    Student
    Location:
    India
    Please Post your code !
     
  3. ankush_urnitemare

    ankush_urnitemare New Member

    Joined:
    Mar 25, 2011
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    0
    d entire code please......
     

Share This Page