freeCodeCamp/guide/english/mathematics/counting/rule-of-sum/index.md

283 B

title
Rule of Sum

Rule of Sum

To say it simply, the Rule of Sum states that if we have A ways of doing something and B ways of doing another thing and we cannot do both at the same time, then there are A + B ways to choose one of the actions. Basic counting principle.