Welcome, %1$s. Please login or register.

February 21, 2018, 05:02:15 PM
: 1
: Find the average Salary  ( 3198 )
« : May 15, 2007, 10:56:29 PM From Ria»

Find the average Salary

Three coworkers would like to know their average salary. However, they are self-conscious and don't want to tell each other their own salaries, for fear of either being ridiculed or getting their houses robbed. How can they find their average salary, without disclosing their own salaries?

Liked It? Share it!


« #1 : May 27, 2007, 07:20:28 PM From rohit»

on apiece of paer
1st will write his salary + random number (unknown to others)
nd pass it to 2nd
2nd will add to that his salary + any random number
similarly the 3rd
than paper comes back to 1st
he subtracts the random number chosen by him
passes on
now 2nd one deducts his
nd then the 3rd one

after that the residue / 3 is the average salary nd no one knowns the exact salary of the other
« #2 : July 13, 2007, 06:21:38 PM From prithvi»

great answer rohit
: 1
« previous next »


Best RatedList All>>


SMF 2.0.10 | SMF © 2015, Simple Machines | Contact Webmaster | OnlineFunDb.com © 2009/10 | Legal Disclaimer