nand gate and not code example
Example 1: nand gate
A B Result
0 0 1
0 1 1
1 0 1
1 1 0
Example 2: nor nand gate
nor = not OR ( opposite of OR gate result , 1 will be 0 ) 1+1 = 0
nand = not AND ( opposite of AND gate result , 1 will be 0 ) 1*1= 0
EXOR gate
# follow the source- link below this answer to get any answer of Logic gate