summaryrefslogtreecommitdiff
path: root/911/CH1/EX1.2/ex_1_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '911/CH1/EX1.2/ex_1_2.sce')
-rw-r--r--911/CH1/EX1.2/ex_1_2.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/911/CH1/EX1.2/ex_1_2.sce b/911/CH1/EX1.2/ex_1_2.sce
new file mode 100644
index 000000000..4fd4408e2
--- /dev/null
+++ b/911/CH1/EX1.2/ex_1_2.sce
@@ -0,0 +1,9 @@
+//example 1.2 //
+// decimal to binary conversion //
+clc
+clear
+disp('decimal equivalent of 00001110 is')
+ans = bin2dec ('00001110')
+// decimal equivalent of binary number //
+disp (ans)
+// answer in decimal form// \ No newline at end of file