Professional Documents
Culture Documents
Write A C Program To Convert The Given Binary
Write A C Program To Convert The Given Binary
decimal */
#include <stdio.h>
void main()
{
int num, bnum, dec = 0, base = 1, rem ;
bnum = num;
} /* End of main() */
/*---------------------------------------------------
Outpput
Enter the binary number(1s and 0s)
1010
The Binary number is = 1010
Its decimal equivalent is =10
----------------------------------------------------*/