summaryrefslogtreecommitdiff
path: root/3836/CH9/EX9.12/Ex9_12.sce
blob: d3ddf6f5ba770962d63ae0b44aff34f1e5376a77 (plain)
1
2
3
4
5
6
7
8
9
clear
//Variable declaration
n=7046                 //Hex number 

//Calculations
h = dec2hex(n)                             //decimal to hex conversion

//Result
printf ("The hexadecimal equivalent of 7046 is %s ",h)