diff options
Diffstat (limited to '3827/CH4/EX4.3')
-rw-r--r-- | 3827/CH4/EX4.3/EX4_3.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/3827/CH4/EX4.3/EX4_3.sce b/3827/CH4/EX4.3/EX4_3.sce new file mode 100644 index 000000000..0a2a0615f --- /dev/null +++ b/3827/CH4/EX4.3/EX4_3.sce @@ -0,0 +1,15 @@ +//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')
|