AND,OR AND NOT GATES!

HOW DO THEY WORK?

HOW DOES AN AND GATE WORK IN A CIRCUIT?

if input a is on and b is not it will not work, it needs both inputs turned on to give an output