blob: 0565e8c917b0202c6b78de0695801dae87db0aa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Chapter 23, Example 23.17
clc
//Initialisation
x=26 //decimal number to be convert
//Calculation
z1=dec2bin(x) //conversion to binary
//Results
printf("Binary of 26 = %s",z1)
|