Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

About cpp connectivity

This is a discussion on About cpp connectivity within the Mathematical Puzzles forums, part of the Brain Gym category; hi friends , If the difference of two numbers is 8 and their product is 12, what is the sum of their squares?...

Go Back   Geeks Talk > Brain Gym > Mathematical Puzzles
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 08-02-2007
Junior Member
 
Join Date: Jul 2007
Location: coimbatore
Posts: 26
Thanks: 4
Thanked 6 Times in 3 Posts
govindaraj123 is on a distinguished road
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 04:59 AM. Reason: my question is placed here mistakenly. now i changed it .
Reply With Quote
The Following User Says Thank You to govindaraj123 For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 08-02-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,016
Thanks: 0
Thanked 91 Times in 72 Posts
psuresh1982 will become famous soon enough
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
Reply With Quote
  #3 (permalink)  
Old 08-04-2007
Junior Member
 
Join Date: Jul 2007
Location: coimbatore
Posts: 26
Thanks: 4
Thanked 6 Times in 3 Posts
govindaraj123 is on a distinguished road
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 ..
Reply With Quote
  #4 (permalink)  
Old 08-04-2007
Expert Member
 
Join Date: Jun 2006
Location: India
Posts: 413
Thanks: 15
Thanked 43 Times in 31 Posts
jamesravid will become famous soon enough
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.
__________________
Cheers,
:) James:)
Reply With Quote
The Following User Says Thank You to jamesravid For This Useful Post:
  #5 (permalink)  
Old 08-06-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,016
Thanks: 0
Thanked 91 Times in 72 Posts
psuresh1982 will become famous soon enough
Re: About cpp connectivity

hi james,

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

----------------
suresh
Reply With Quote
The Following User Says Thank You to psuresh1982 For This Useful Post:
  #6 (permalink)  
Old 08-06-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,853
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: About cpp connectivity

that was really tricky, so is the answer.
Reply With Quote
Reply

  Geeks Talk > Brain Gym > Mathematical Puzzles

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Methods and process of data connectivity manishvas22 Database Design 3 09-03-2007 06:10 AM
I am getting database connectivity error sumana_i Test Director 0 04-06-2007 04:24 AM


All times are GMT -4. The time now is 11:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved