summaryrefslogtreecommitdiff
path: root/462/CH2/EX2.26
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /462/CH2/EX2.26
downloadScilab-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-x462/CH2/EX2.26/ex_2_26.pdfbin0 -> 118802 bytes
-rwxr-xr-x462/CH2/EX2.26/ex_2_26.sce21
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
new file mode 100755
index 000000000..28136db27
--- /dev/null
+++ b/462/CH2/EX2.26/ex_2_26.pdf
Binary files differ
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