From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1241/CH2/EX2.25/exa2_25.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 1241/CH2/EX2.25/exa2_25.sce (limited to '1241/CH2/EX2.25/exa2_25.sce') diff --git a/1241/CH2/EX2.25/exa2_25.sce b/1241/CH2/EX2.25/exa2_25.sce new file mode 100755 index 000000000..198d7af43 --- /dev/null +++ b/1241/CH2/EX2.25/exa2_25.sce @@ -0,0 +1,16 @@ +//Example 6-25// +//Solve multiple output equation using mapping// +clc +//clears the window// +clear +//clears all existing variables// +x=hex2dec('1A3') +y=hex2dec('89') +//Decimal conversion of the hexadecimal numbers// +z=x*y +//multiplication// +a=dec2hex(z) +//decimal to hexadecimal conversion// +disp(' multiplication of the 2 hexadecimal numbers is ') +disp(a) +//answer in hexadecimal form// -- cgit