Help with designing a circuit with logic gates
Same deal as Keelan's answer, but using a single 74xx00 series NAND chip (4 gates):







simulate this circuit &ndash; Schematic created using CircuitLab