The Binary Number is number which has base 2. which consists of only two numerical symbols ‘1’ and ‘0’ and each digit is referred to as a ‘Bit’.
What is Decimal Number?
The number which has base 10 is called a Decimal Number system.
For Example 0101=2^3*0+2^2*1+2^1*0+2^0*1=0+4+0+1=5.
Output:
Instructions:
1. Enter alphabet 'd' to convert binary to decimal.
2. Enter alphabet 'b' to convert decimal to binary.
d
Enter a binary number: 110101001
110101001 in binary = 425 in decimal
need an explanation for this answer? contact us directly to get an explanation for this answer