summaryrefslogtreecommitdiff
path: root/911/CH7/EX7.6/ex_7_6.sce
blob: 35e57a68d0e824a73c5fc4ee94aced103fb22608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// example 7.6//
clc
clear
n=input('Enter the no. of terms in your expression : ' );
//accepting input from user//
for i =1: n
a(1,i)= input('Enter the term (0-9): ' );
end
disp ('Since at the decoder output we get all the minterms we use them to get the required boolean functions by giving the output lines numbered');
disp(a);
//displaying the result//
disp('to a multi-input OR gate.' );