Its is inputted by the user...!!!
anyways the program to convert the binary equivalent of a decimal number is as follows:
#include
#include
void main()
{ int i,n,j,b[100];
clrscr();
printf("Enter a Number:");
scanf("%d",&n);
i=0;
while(n>0)
{
b[i]=n%2;
n=n/2;
i++;
}
printf("\n\nBinary Equivalent:");
j=i-1;
for(i=j;j>=0;j--)
printf("%d",b[j]);
getch();
}
using this algorithms... the binary equivalent of any number is taken out...!!! enjoy... have any query... email at :- "devilllcreature@Yahoo.com" thank you....!!!
109 base 10
255 as a decimal number (also known as a base 10 number) = 11111111 in binary (also known as a base 2 number). In binary, each digit is known as a bit, and 8 bits are known as 1 byte. 255 is the largest (positive) number you can make in binary using only 8 bits (1 byte).
1111010011011110 from binary is 62686 in decimal
10010102 = (in base 10) 26 + 23 + 21 = 64 + 8 + 2 = 74
The binary equivalent would be... 1010101101011101 - There is a multi-functional calculator built-in to Windows which can covert numbers between Hex, Decimal, Octal and Binary.
"Ordinary" numbers are on base 10 (="decimal"). Binary only has 2 digits. 0 and 1 (representing "on" or "off" in some circuits). So "conversion" is how to represent an number in one to how it appears in the other. So 10 (binary) means 1x21 + 0x20 , which is 2. Decimal to binary effectively means representing an ordinary ("decimal") number in binary form. So 10 (decimal) is broken up into powers of 2 as 8+2 = 1x23 + 0x22 + 1x21 + 0x20 which is 1010 (binary).
When you write the decimal number '7' in Base-2 (binary), you write '0111'.
10 base ten
55 base 10
The binary equivalent of the decimal number 75 is 1001011.
Binary 1001111 is 79 in decimal.
26 base 10 = 1 1010 base 2
480 base 10
109 base 10
210 base ten
1101 base 2
5 base 10