When a transistor is on, or open, then an electric current can flow through. ... When you string a bunch of these transistors together, then you get what's called a logic gate, which lets you add, subtract, multiply, and divide binary numbers in any way imaginable. In a physical circuit, these logic gates have: Inputs.