AND, OR and NOT

Published by Mubashir Hassan in

You will need to write three unfinished logic gates. Continue to write the three logic gates: AND, OR, and NOT.

Examples

AND(1, 1) ➞ 1
AND(0, 0) ➞ 0

OR(1, 0) ➞ 1
OR(1, 1) ➞ 1

NOT(0) ➞ 1
NOT(1) ➞ 0

Notes

Check the Resources tab for some help.

Watch a quick demo on how Edabit works.