Input Output
A B Y
0 0 0
0 1 0
1 0 0
1 1 1

And Gate :-

AND gate is a fundamental building block of digital circuits. This gate takes in two boolean inputs and returns a single boolean output. As you may infer from its name, the output will return true if and only if both of its inputs are true.