Worked example
Multiply within a case, then add the cases
A code has one letter from A, B, C followed by one digit from . The code C4 is forbidden. How many codes remain?
If the first letter is A or B, all four digits are allowed: codes.
If the letter is C, only three digits are allowed: codes.
The cases are disjoint and cover every permitted first letter. As a check, the unrestricted codes lose exactly one forbidden code.