Logic gates

7-segment decoder

Make a binary number (0 to 9) with the 8, 4, 2, 1 switches on the left and the digit lights up on the right.