<p><img alt="Logical gates can be used to do arithmetic on binary numbers. For example, we can write a logical circuit whose output is one" src="https://media.cheggcdn.com/media%2Fa93%2Fa93f00c6-52f5-4007-85f4-831a4f0e1c18%2FphpxqKiJy.png" style="height:470px;width:1024px;" aria-describedby="d3f"/></p>Logical gates can be