Computer only understand two numbers, they are 1 and 0 called binary number. Decimal means number 0,1,2,3,4,5,6,7,8,9. You have to convert binary number to decimal number.
//binary to decimal conversion.#include<stdio.h>
printf(“\n Enter a binary no.:”);
printf(“\n Decimal conversion of given no.: %d”,dec);
Using this procedure you can also convert octal to decimal and hexadecimal to decimal by changing the base to 8 or 16 respectively.