1 2 3 4 5 6 7 8
//example 3.7// //not using nand// clc //refreshes all variables// clear //clears the screen// disp('in the figure same input is given to NAND gate on both ends.') //result//