summaryrefslogtreecommitdiff
path: root/3860/CH1/EX1.6/Ex1_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3860/CH1/EX1.6/Ex1_6.sce')
-rw-r--r--3860/CH1/EX1.6/Ex1_6.sce5
1 files changed, 5 insertions, 0 deletions
diff --git a/3860/CH1/EX1.6/Ex1_6.sce b/3860/CH1/EX1.6/Ex1_6.sce
new file mode 100644
index 000000000..49b4e2bb3
--- /dev/null
+++ b/3860/CH1/EX1.6/Ex1_6.sce
@@ -0,0 +1,5 @@
+//Example 1.6 Conversion from decimal number to binary number.
+clc; //clears the console
+x = dec2bin(746); // binary equivalent of decimal number
+disp('The binary number is = ');
+disp(x) // answer in binary form