diff options
Diffstat (limited to '911/CH1/EX1.7.a/ex_1_7_a.sce')
-rw-r--r-- | 911/CH1/EX1.7.a/ex_1_7_a.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/911/CH1/EX1.7.a/ex_1_7_a.sce b/911/CH1/EX1.7.a/ex_1_7_a.sce new file mode 100644 index 000000000..2c105ea4f --- /dev/null +++ b/911/CH1/EX1.7.a/ex_1_7_a.sce @@ -0,0 +1,13 @@ +// example 1.7(a) / /
+// hexadecimal to binary conversion //
+clc
+// clears the screen //
+clear
+// clears already existing variables //
+x= hex2dec ('17E')
+//hexadecimal to decimal conversion //
+a= dec2bin (x)
+//decimal to binary conversion //
+disp ('conversion of hexadecimal given no to its binary form is : ')
+disp (a)
+// answer in binary form//
\ No newline at end of file |