diff options
Diffstat (limited to '911/CH1/EX1.7.b/ex_1_7_b.sce')
-rw-r--r-- | 911/CH1/EX1.7.b/ex_1_7_b.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/911/CH1/EX1.7.b/ex_1_7_b.sce b/911/CH1/EX1.7.b/ex_1_7_b.sce new file mode 100644 index 000000000..30eaf0661 --- /dev/null +++ b/911/CH1/EX1.7.b/ex_1_7_b.sce @@ -0,0 +1,13 @@ +// example 1.7(b) //
+//conversion of binary to hexadecimal //
+clc
+//clears the screen //
+clear
+//clears already existing variables //
+x= bin2dec ('1011001110' )
+// binary to decimal conversion //
+a= dec2hex (x)
+//decimal to hexadecimal conversion //
+disp ('conversion of given binary number to its hexadecimal form is : ')
+disp (a)
+// answer in hexadecimal form//
\ No newline at end of file |