summaryrefslogtreecommitdiff
path: root/1241/CH2/EX2.25/exa2_25.sce
blob: 198d7af433396c311be7ac80d81166e896f90f4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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//