The AND gate
Click on the switches to see how it works.
Input
A
B
A
and
B