Thread: Can someone help?

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    33

    Can someone help?

    Answered Thanks
    Last edited by paulntysmom; 04-27-2006 at 04:42 PM. Reason: Questions answered

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    1. Correct.
    2. No, that's a typo. The correct answer is B.
    Code:
    (num%2) == 0? printf("Even\n") : printf("Odd\n");
    3. Correct. The value for count is never changed therefore the while loop never ends.
    Last edited by whiteflags; 04-27-2006 at 06:28 PM.

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    33
    Thank you

  4. #4
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    Please do not edit out your questions once they are answered. It's nice for people browsing/searching to see both the question and the answer.

Popular pages Recent additions subscribe to a feed