blob: f265c302744a7a324faa7d7aee1832644748692e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Ex19_23 Pg-966
clc
dec=65535 //decimal input
hex=dec2hex(dec) //hexadecimal output
disp("The Hexadecimal equivalent of 65535 is")
disp(hex)
bin=dec2bin(dec) //binary output
disp("The Binary equivalent of 65535 is ")
disp(bin)
|