summaryrefslogtreecommitdiff
path: root/1241/CH6/EX6.14.c/exa6_14c.sce
blob: 6f7a7dd3e80cf883ce45444c2dc1ac124172a2bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//example 6-14c//
//Number of inputs required//
clc
//clears the window//
clear
//clears all existing variables//
disp(' Y=ST''U''V+STO''V+UV''+SUV+TU''V'' ')
disp('count AND inputs')
disp('4+4+2+3+3=16')
disp('count OR inputs')
disp('1+1+1+1+1=5')
disp('therefore total inputs=21')
//result is displayed//