diff options
Diffstat (limited to '911/CH1/EX1.8.b/ex_1_8_b.sce')
-rw-r--r-- | 911/CH1/EX1.8.b/ex_1_8_b.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/911/CH1/EX1.8.b/ex_1_8_b.sce b/911/CH1/EX1.8.b/ex_1_8_b.sce new file mode 100644 index 000000000..562d090cf --- /dev/null +++ b/911/CH1/EX1.8.b/ex_1_8_b.sce @@ -0,0 +1,13 @@ +// example 1.8(b)//
+//conversion octal number to hexadecimal number //
+clc
+//clears the screen //
+clear
+// clears already existing variables //
+x= oct2dec ('762')
+//octal to decimal conversion //
+a= dec2hex (x)
+//decimal to hexadecimal conversion //
+disp ('conversion of given octal no to its hexadecimal form results in :' )
+disp (a)
+//answer in hexadecimal form//
\ No newline at end of file |