Chapter 11 - Logic Circuits

Example E1 - Pg 340

In [1]:
#Caption:Determine output for given logic circuit
A=1.
B=0
C=1.
D=1.
c=A-1.
n=c#Output of NOT gate
a=B*C*D#Output of AND gate
o=c+(B*C*D)#Output of OR gate
print '%s %.f' %('Output for given logic circuit is=',o)
Output for given logic circuit is= 0