1 2 3 4 5 6 7
//Ex19_22 Pg-966 clc dec=2479 //decimal input hex=dec2hex(dec) //hexadecimal output disp("The Hexadecimal equivalent of 2479 is") disp(hex)