Analytical Puzzles
Medium
2 min
A company has 120 employees. 70 know Python, 50 know Java, and 30 know both. How many know at least one of the two languages?
Hint
Use the inclusion-exclusion principle.
Answer
90 employees.
Explanation
The number knowing at least one language is 70 + 50 - 30 = 90.
Step-by-Step Solution
Python = 70.
Java = 50.
Both = 30.
At least one = 70+50-30 = 90.
Java = 50.
Both = 30.
At least one = 70+50-30 = 90.