//example 1.7(b)// clc //clears the screen// clear //clears already existing variables// disp('when one of the logic input of 2-input NAND gate is 1, then when A=1, Y=0 and if A=0, Y=1') disp('Y=A''')