Results 1 to 6 of 6

Thread: About cpp connectivity

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Answers
    21

    simple math question

    hi friends ,

    If the difference of two numbers is 8 and their product is 12, what is the sum of their squares?

    Last edited by govindaraj123; 08-02-2007 at 03:59 AM. Reason: my question is placed here mistakenly. now i changed it .

  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: About cpp connectivity

    There is no possible answer for this...You told their product is 12. So the possible combination is (1,12),(2,6),(3,4)

    Whether the number is +ve or -ve, there is no possible for getting the difference 8.

    If i am wrong then correct me...otherwise correct your question...

    --------------------
    suresh


  3. #3
    Junior Member
    Join Date
    Jul 2007
    Answers
    21

    Re: About cpp connectivity

    Quote Originally Posted by psuresh1982 View Post
    There is no possible answer for this...You told their product is 12. So the possible combination is (1,12),(2,6),(3,4)

    Whether the number is +ve or -ve, there is no possible for getting the difference 8.

    If i am wrong then correct me...otherwise correct your question...

    --------------------
    suresh

    hi suresh .

    i was given that question by an interview . i also confused with question . still i don't know correct answer . As u told question may be wrong i accept it ..


  4. #4
    Expert Member
    Join Date
    Jun 2006
    Answers
    410

    Re: About cpp connectivity

    The answer is 88

    It is given that a -b = 8
    and ab = 12

    we need to calculate a^2 + b^2

    We know that a^2 + b^2 = (a-b)^2 + 2ab
    = 8^2 + 2 *12
    = 88

    To Suresh, It is not given that both a and b are integers and you are not asked to find the values of a and b.

    Hope this helps you guys.


  5. #5
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: About cpp connectivity

    hi james,

    Nice explanation. Now i am clear about the question....

    ----------------
    suresh


  6. #6
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: About cpp connectivity

    that was really tricky, so is the answer.


  7.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact