A logic gate accepts input and produces output.
Logic gates are fundamental building blocks of digital circuits and perform basic logical functions that are essential for digital computing. They take one or more binary inputs and produce a single binary output.