Evaluate the expression p||(q&&r)
This can also be written as P ∨ (Q ∧ R)
Since we have 3 letters T or F
we have 23 = 8 possible scenarios
P | Q | R | P ∨ (Q ∧ R) |
---|---|---|---|
T | T | T | T |
T | T | F | T |
T | F | T | T |
T | F | F | T |
F | T | T | T |
F | T | F | F |
F | F | T | F |
F | F | F | F |
Final Answer
P | Q | R | P ∨ (Q ∧ R) |
---|---|---|---|
T | T | T | T |
T | T | F | T |
T | F | T | T |
T | F | F | T |
F | T | T | T |
F | T | F | F |
F | F | T | F |
F | F | F | F |