blob: 727e2f5301a7479fa3c32b83b8248a3e354ee864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Chapter-15, Example 15.3, Page 493
//=============================================================================
clc
clear
//INPUT DATA
x1=112;//in decimal form
x2=253;//in decimal form
//CALCULATIONS
y1=dec2base(x1,16)//converting decimal to hexadecimal
y2=dec2base(x2,16)//converting decimal to hexadecimal
disp(y1);
disp(y2);
//=================================END OF PROGRAM=======================================================================================================
|