Logic gates are simple alone but putting them together can be a bit tedious, computer programming pretty much just is "Do this and this except if this" over and over again to get different results.

example if a logic gate 1 and 2's output is active it will activate logic gate 3 only if both inputs in logic gate 1 and 2 are active.

logic gates have 2 inputs and 1 output btw sorry I didn't mention it, even then this is a crap version of what it really is