From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3860/CH1/EX1.9/Ex1_9.sce | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 3860/CH1/EX1.9/Ex1_9.sce (limited to '3860/CH1/EX1.9/Ex1_9.sce') 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 -- cgit