summaryrefslogtreecommitdiff
path: root/911/CH2/EX2.9/ex_2_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '911/CH2/EX2.9/ex_2_9.sce')
-rw-r--r--911/CH2/EX2.9/ex_2_9.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/911/CH2/EX2.9/ex_2_9.sce b/911/CH2/EX2.9/ex_2_9.sce
new file mode 100644
index 000000000..e6aaba6ea
--- /dev/null
+++ b/911/CH2/EX2.9/ex_2_9.sce
@@ -0,0 +1,11 @@
+//example 2.9//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+a=bin2dec('110101')
+//binary to decimal conversion//
+b=bin2dec('1011')
+c=a/b;
+//division//
+disp(c,'division of given numbers =') \ No newline at end of file