Logic gates

Logic gate are the basis of all of computing.
They take two binary inputs (0/1 or true/false), and result in a binary output whose value depends on the inputs.
These gates form the building blocks upon which all computers are built.

And Gate

True only when both inputs are true

AND

Or Gate

True when either input is true

OR

XOR Gate

True only when exactly one input is true, but not both

XOR