summaryrefslogtreecommitdiff
path: root/3836/CH9/EX9.13/Ex9_13.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH9/EX9.13/Ex9_13.sce')
-rw-r--r--3836/CH9/EX9.13/Ex9_13.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3836/CH9/EX9.13/Ex9_13.sce b/3836/CH9/EX9.13/Ex9_13.sce
new file mode 100644
index 000000000..273a8d305
--- /dev/null
+++ b/3836/CH9/EX9.13/Ex9_13.sce
@@ -0,0 +1,14 @@
+clear
+//Initializaton
+
+n='f851' //Hex Number
+
+//Calculation
+
+w=hex2dec(n) //Hex to Decimal Coversion
+w1 =dec2bin(w)
+
+
+//Result
+printf("\n Binary of f851 = %s",(w1))
+