A NAND gate gives output LOW only when all inputs are HIGH. Otherwise, the output is HIGH.
Truth Table:
\[
\begin{array}{c|c|c}
A & B & A \text{ NAND } B
\hline
0 & 0 & 1
0 & 1 & 1
1 & 0 & 1
1 & 1 & 0
\end{array}
\]
This satisfies the condition:
- Both high → output low
- Any input low → output high