diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2825/CH19/EX19.18 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2825/CH19/EX19.18')
-rwxr-xr-x | 2825/CH19/EX19.18/Ex19_18.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/2825/CH19/EX19.18/Ex19_18.sce b/2825/CH19/EX19.18/Ex19_18.sce new file mode 100755 index 000000000..9c7ecfdd4 --- /dev/null +++ b/2825/CH19/EX19.18/Ex19_18.sce @@ -0,0 +1,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)
|