//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//