diff options
Diffstat (limited to '2492/CH8/EX8.3/ex8_3.sce')
-rwxr-xr-x | 2492/CH8/EX8.3/ex8_3.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/2492/CH8/EX8.3/ex8_3.sce b/2492/CH8/EX8.3/ex8_3.sce new file mode 100755 index 000000000..d7d390e9a --- /dev/null +++ b/2492/CH8/EX8.3/ex8_3.sce @@ -0,0 +1,11 @@ +// Exa 8.3
+format('v',9)
+clc;
+clear;
+close;
+// Given data
+str= '256';// given number in octal to convert into hexadecimal
+str_in_dec= oct2dec(str);// decimal equivalent
+str_in_hex= dec2hex(str_in_dec);// hexadecimal equivalent
+disp(str_in_hex,"The hexadecimal equivalent of 256 is : ")
+
|