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 /462/CH2/EX2.26 | |
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 '462/CH2/EX2.26')
-rwxr-xr-x | 462/CH2/EX2.26/ex_2_26.pdf | bin | 0 -> 118802 bytes | |||
-rwxr-xr-x | 462/CH2/EX2.26/ex_2_26.sce | 21 |
2 files changed, 21 insertions, 0 deletions
diff --git a/462/CH2/EX2.26/ex_2_26.pdf b/462/CH2/EX2.26/ex_2_26.pdf Binary files differnew file mode 100755 index 000000000..28136db27 --- /dev/null +++ b/462/CH2/EX2.26/ex_2_26.pdf diff --git a/462/CH2/EX2.26/ex_2_26.sce b/462/CH2/EX2.26/ex_2_26.sce new file mode 100755 index 000000000..0cdb405bc --- /dev/null +++ b/462/CH2/EX2.26/ex_2_26.sce @@ -0,0 +1,21 @@ +//example 2.26//
+//addition of octal numbers//
+clc
+//clears the screen//
+clear
+//clears already existing variables//
+x=oct2dec('23')
+//octal to decimal conversion//
+y=oct2dec('67')
+z=x+y
+//addition//
+a=dec2oct(z)
+//decimal to octal conversion//
+b=dec2bin(z)
+//decimal to binary conversion//
+disp('addition of given no is octal form is')
+disp(a)
+//answer in octal form//
+disp('addition of given numbers in binary form is:')
+disp(b)
+//answer in binary form//
\ No newline at end of file |