diff options
Diffstat (limited to '462/CH2/EX2.8.b')
-rwxr-xr-x | 462/CH2/EX2.8.b/ex_2_8_b.pdf | bin | 0 -> 34138 bytes | |||
-rwxr-xr-x | 462/CH2/EX2.8.b/ex_2_8_b.sce | 11 |
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 Binary files differnew file mode 100755 index 000000000..bd57c6e37 --- /dev/null +++ b/462/CH2/EX2.8.b/ex_2_8_b.pdf 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 |