The following logic gates will be two inputs and one output.

The input will be binary, 1 or 0.

AND Gate

Untitled

In general Y = A.B

A.B = 1 only if both A and B are 1.

A B Y
0 0 0
0 1 0
1 0 0
1 1 1

OR Gate

Untitled

In general Y = A+B

A+B = 1 if A = 1 or B = 1. This includes when A and B is 1.

A B Y
0 0 0
0 1 1
1 0 1
1 1 1

Not Gate

Untitled

In general $Y = \bar{A}$.

$\bar{A}$ = 1 when A = 0. $\bar{A}$ = 0 when A = 1.

A Y
0 1
1 0

NAND Gate

Untitled

In general $Y = \overline{A.B}$