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