clc
clear
disp("Example 8.17")
printf("\n")
disp("convert the following decimael numbers to hexadecimal")
disp("a)2146 b)843 c)2604")
//this program, converts only integer part to hexadecimal
dec=843
Hdec=dec2hex(dec);
printf("decimal=%s",Hdec)