How many NAND gates are needed to perform the logic function X.Y?
4 NAND gates are needed to perform the logic function X.Y.
A NAND gate is a logic gate which produces an output which is false only if all its inputs are true; thus its output is complement to that of an AND gate. A low output results only if all the inputs to the gate are high; if any input is low, a high output results.