summaryrefslogtreecommitdiff
path: root/911/CH1/EX1.6.b/ex_1_6_b.sce
diff options
context:
space:
mode:
Diffstat (limited to '911/CH1/EX1.6.b/ex_1_6_b.sce')
-rw-r--r--911/CH1/EX1.6.b/ex_1_6_b.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/911/CH1/EX1.6.b/ex_1_6_b.sce b/911/CH1/EX1.6.b/ex_1_6_b.sce
new file mode 100644
index 000000000..d8ad68285
--- /dev/null
+++ b/911/CH1/EX1.6.b/ex_1_6_b.sce
@@ -0,0 +1,13 @@
+// example 1.6(b) / /
+clc
+//clears the screen //
+clear
+//clears already existing variables //
+// binary to octal conversion //
+y= bin2dec ('1110100')
+//binary to decimal conversion//
+a= dec2oct (y)
+//decimal to octal conversion //
+disp ('octal representation of given no is : ' )
+disp (a)
+// answer in octal form// \ No newline at end of file