Most logic gates have two inputs and one output. These are usually binary conditions: 1 or 0.

To work out the number of rows needed, on a truth table, the formula is 2 to the power of how many inputs there are.

Credits:

Created with images by Picography - "notebook laptop work"