blob: 53cd5c6f53865072072df8c89a851eec96b4456e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Caption:Determine output for given logic circuit
//Ex11.3
clc;
clear;
close;
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
disp(o,'Output for given logic circuit is=')
|