blob: b8ea91c64129bd9b5858e53864fd308c90cf96c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//example 6-14b//
//Number of inputs required//
clc
//clears the window//
clear
//clears all existing variables//
disp(' X=LM+N''PQ+LM''PQ'' ')
disp('count AND inputs')
disp('2+3+4=9')
disp('count OR inputs')
disp('1+1+1=3')
disp('therefore total inputs=12')
//result is displayed//
|