xor from and and or code example
Example: XOR from only OR and AND
A B OR AND NAND [(A OR B) AND (A NAND B)]
T T T T F F
T F T F T T
F T T F T T
F F F F T F
A B OR AND NAND [(A OR B) AND (A NAND B)]
T T T T F F
T F T F T T
F T T F T T
F F F F T F