blob: cd827aed5149b073c049c2e12864967c0ef38b65 (
plain)
1
2
3
4
5
6
7
8
|
//Ex19_20 Pg-957
clc
bin='10001100'; //binary input
dec=bin2dec(bin) //decimal output
hex=dec2hex(dec) //hexadecimal output
disp("The hexadecimal equivqlent of 10001100 is")
disp(hex)
|