summaryrefslogtreecommitdiff
path: root/2825/CH19/EX19.18/Ex19_18.sce
blob: 9c7ecfdd40cbc65716b543d0dda285265da86db2 (plain)
1
2
3
4
5
6
7
8
//Ex19_18 Pg-965
clc

hex='9AF' //hexadecimal input
dec=hex2dec(hex) //decimal output
bin=dec2bin(dec) //binary output
disp("The binary equivalent of 9AF is")
disp(bin)