Modern Computing: brought to you by your friendly neighborhood logic gates
And gate
A truth table for an AND gate that takes two inputs
if (a==1) AND (b==1)  then out=1 else out=0

Logic gates boil down to simple expresions of boolean logic.

What if I want to add another input to my AND gate? Well, its simple. The AND gate takes two inputs, so, I make a gate chain using another AND gate. It looks like this:

Using AND gates for three inputs
if (a==1) AND (b==1) AND (c==1)
then out=1 else out=0

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store