-It is a number which expressed in the base-2 numeral system,
-Binary numbers are 0 or 1.
- A number which expressed in the base-10 numeral system.
- Decimal number range is 0 to 9
Conversion of Binary to Decimal number
Binary number is 1010
Its decimal equivalent is 10
Binary number is 100000000000
Its decimal equivalent is 2048
-In this program, we take input of the binary number, then for each bit of number we convert the decimal equivalent and add them so we get decimal number of given number.