summaryrefslogtreecommitdiff
path: root/462/CH2/EX2.8.b
diff options
context:
space:
mode:
Diffstat (limited to '462/CH2/EX2.8.b')
-rwxr-xr-x462/CH2/EX2.8.b/ex_2_8_b.pdfbin0 -> 34138 bytes
-rwxr-xr-x462/CH2/EX2.8.b/ex_2_8_b.sce11
2 files changed, 11 insertions, 0 deletions
diff --git a/462/CH2/EX2.8.b/ex_2_8_b.pdf b/462/CH2/EX2.8.b/ex_2_8_b.pdf
new file mode 100755
index 000000000..bd57c6e37
--- /dev/null
+++ b/462/CH2/EX2.8.b/ex_2_8_b.pdf
Binary files differ
diff --git a/462/CH2/EX2.8.b/ex_2_8_b.sce b/462/CH2/EX2.8.b/ex_2_8_b.sce
new file mode 100755
index 000000000..ed23b7e16
--- /dev/null
+++ b/462/CH2/EX2.8.b/ex_2_8_b.sce
@@ -0,0 +1,11 @@
+//example 2.8(b)//
+//one's complement of binary number//
+clc
+//clears the screen//
+clear
+//clears all the existing variables//
+x=bin2dec('11011010')
+//entering the data in binary form//
+ans=dec2bin(bitcmp(x,8))
+disp(ans);
+//result will be displayed// \ No newline at end of file