summaryrefslogtreecommitdiff
path: root/462/CH1/EX1.7.a/ex_1_7_a.sce
blob: 1118ebbfee28a258f450b01ea6cfbcff6a23f95d (plain)
1
2
3
4
5
6
7
//example 1.7(a)//
clc
//clears the screen//
clear
//clears already existing variables//
disp('when one of the logic input of 2-input NAND gate is 0, then irrespective of the other input, the output comes out to be 1. In fact, a NAND gate is disabled or inhibited if one of its inputs is connected to logic 0')
disp('Y=1')