diff options
Diffstat (limited to '3809/CH23/EX23.16/EX23_16.sce')
-rw-r--r-- | 3809/CH23/EX23.16/EX23_16.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3809/CH23/EX23.16/EX23_16.sce b/3809/CH23/EX23.16/EX23_16.sce new file mode 100644 index 000000000..9dba8078f --- /dev/null +++ b/3809/CH23/EX23.16/EX23_16.sce @@ -0,0 +1,12 @@ +//Chapter 23, Example 23.16 + +clc +////Initialisation +x="11010" //binary number to be convert + + +//Calculation +x1=bin2dec(x) //conversion to decimal + +//Results +printf("Decimal of 11010 = %d",x1) |