summaryrefslogtreecommitdiff
path: root/2825/CH19/EX19.19/Ex19_19.sce
blob: 986b8702838eef2ecc5f1e953b47b48134021b62 (plain)
1
2
3
4
5
6
7
8
//Ex19_19 Pg-965
clc

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