diff options
Diffstat (limited to '3860/CH1/EX1.8')
-rw-r--r-- | 3860/CH1/EX1.8/Ex1_8.sce | 5 | ||||
-rw-r--r-- | 3860/CH1/EX1.8/Ex1_8.txt | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/3860/CH1/EX1.8/Ex1_8.sce b/3860/CH1/EX1.8/Ex1_8.sce new file mode 100644 index 000000000..77e476d08 --- /dev/null +++ b/3860/CH1/EX1.8/Ex1_8.sce @@ -0,0 +1,5 @@ +//Example 1.8 Conversion from decimal number to binary number.
+clc;
+x = dec2bin(105); // binary equivalent of decimal number
+disp('The binary number is = ');
+disp(x) // answer in binary form
diff --git a/3860/CH1/EX1.8/Ex1_8.txt b/3860/CH1/EX1.8/Ex1_8.txt new file mode 100644 index 000000000..c38cf6adc --- /dev/null +++ b/3860/CH1/EX1.8/Ex1_8.txt @@ -0,0 +1,4 @@ +
+ The binary number is =
+
+ 1101001
\ No newline at end of file |