##### NAND gate

NAND gate :- It is complement of AND gate. It produces low signal output iff all the input signals are high. It has n input and 1 output.
For a 2-input NAND gate,if A and B are the input signal then output signal Y can be represented as  Y=$\overline{A.B}$​ ​​.
This gate is represented as

Truth Table for NAND gate :

 A B Y 0 0 1 0 1 1 1 0 1 1 1 0

TipsYou can see in the table that  we get 0 only if both A and B are 1.