//EX4_3: Simple Binary Adder //clears the screen clc //clears already existing variables clear disp(' A | B | X | Y |') disp('----------------') disp(' 0 | 0 | 0 | 0 |') disp(' 0 | 1 | 0 | 1 |') disp(' 1 | 0 | 0 | 1 |') disp(' 1 | 1 | 1 | 0 |') disp('X = AB and Y = A''B + AB'' = A⊕B')