diff options
Diffstat (limited to '3860/CH1/EX1.9/Ex1_9.sce')
-rw-r--r-- | 3860/CH1/EX1.9/Ex1_9.sce | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/3860/CH1/EX1.9/Ex1_9.sce b/3860/CH1/EX1.9/Ex1_9.sce new file mode 100644 index 000000000..a540b9453 --- /dev/null +++ b/3860/CH1/EX1.9/Ex1_9.sce @@ -0,0 +1,6 @@ +//Example 1.9 Conversion from binary number to Hexadecimal number.
+clc;
+x = bin2dec('1011101010'); // decimal equivalent of binary number
+z = dec2hex(x); //hexadecimal equivalent of decimal number
+disp('The hexadecimal number is = ');
+disp(z) // answer in hexadecimal form
|