XOR Gate with 5 NPN Transistors and 2 switches. Current will only flow through load resistor (top right) if one of the two switches (located bottom left) is closed and the other is open. Current will not flow if both switches are closed, or if both switches are open.