computingHow logic gates turn simple rules into computation
A logic gate produces an output from one or more binary inputs according to a fixed rule. An AND gate outputs 1 only when both inputs are 1; an OR gate outputs 1 when at least one input is 1. Connecting many gates creates circuits that can compare values, add numbers and control other operations.