diff options
Diffstat (limited to '45/CH5/EX5.8/example_5_8.sce')
-rwxr-xr-x | 45/CH5/EX5.8/example_5_8.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/45/CH5/EX5.8/example_5_8.sce b/45/CH5/EX5.8/example_5_8.sce new file mode 100755 index 000000000..79996b5aa --- /dev/null +++ b/45/CH5/EX5.8/example_5_8.sce @@ -0,0 +1,8 @@ +//Example 5.8
+clc //clear the command window
+clear //clear the variables
+a=input("Enter the hexadecimal number to be converted into decimal(enter in a single quotation) : ") // taking the input from user
+d=hex2dec(a);
+printf("The decimal equivalent is : %d",d); //displaying the output
+
+
|