Using De Morgans law what is the equivalent to this statemen
Using De Morgan\'s law, what is the equivalent to this statement? if not (state == \"PA\" or state == \"OH\")
Solution
According to DeMorgan\'s Theorem applied to (A+B+C) is as follows:
(A+B+C)=ABC
We have,
NOT(A or B or C) Not(A) and Not(B) and Not(C),
which in boolean-algebra equates to ABC
Similarly,
as given: if not (state == \"PA\" or state == \"OH\"),
We have,
NOT(PA OR OH) NOT(PA) AND NOT(OH)
