summaryrefslogtreecommitdiff
path: root/3544/CH3/EX3.2/Ex3_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3544/CH3/EX3.2/Ex3_2.sce')
-rw-r--r--3544/CH3/EX3.2/Ex3_2.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3544/CH3/EX3.2/Ex3_2.sce b/3544/CH3/EX3.2/Ex3_2.sce
new file mode 100644
index 000000000..9e7411c52
--- /dev/null
+++ b/3544/CH3/EX3.2/Ex3_2.sce
@@ -0,0 +1,10 @@
+
+//Functioning of XOR logic
+
+printf("\tInput 1\tInput 2\tOutput\n\n")
+
+for i=0:1
+ for j=0:1
+ printf("\t %d\t %d\t %d\n",i,j,bitxor(i,j))
+ end
+end