**There are some coworkers and they want to know the average of their salary without disclosing their actual salary. Can you devise a way?**

**Possible Solution:**

If there are three people A B and C. Then A can start by adding his/her salary with a constant term AC and give it to B. The B also adds his/her salary and a constant term BC to whole amount and C also does the same. When it comes back to A, A can deduct his/her constant term followed by B and C. So the actual sum of the salary will come out which can be divided by 3 to get the average salary.

## 0 comments:

## Post a Comment