summaryrefslogtreecommitdiff
path: root/3809/CH23/EX23.20/EX23_20.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH23/EX23.20/EX23_20.sce')
-rw-r--r--3809/CH23/EX23.20/EX23_20.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3809/CH23/EX23.20/EX23_20.sce b/3809/CH23/EX23.20/EX23_20.sce
new file mode 100644
index 000000000..137ecd5d6
--- /dev/null
+++ b/3809/CH23/EX23.20/EX23_20.sce
@@ -0,0 +1,11 @@
+//Chapter 23, Example 23.17
+clc
+//Initialisation
+x=7046 //decimal number to be convert
+
+
+//Calculation
+z1=dec2hex(x) //conversion to hex number
+
+//Results
+printf("Hex of 7046 = %s",z1)