answersLogoWhite

0

#include #include
void main()
{
int a[20],b,c,d,i=0;
printf("Enter a decimal no. to convert it into binary no.");
scanf("%d",&b);
c=b;
while(b>0)
{
d[i]=b%2;
i++;
b=b/2;
}
i--;
printf("\nBinary equivalent of decimal no. %d is ",c);
while(i>=0)
{
printf("%d",d[i]);
i--;
}
getch();
}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Convert the following decimal numbers into their equivalent binary numbers and then convert the resulting binary numbers back into the decimal numbers a. 6401 b. 1010110?

a) 6401 in Binary is 1100100000001b) 1010110 in decimal is 86


Convert 186 decimal numbers to its binary equivalent?

Convert 189 to binary number


Which of the following binary numbers is the equivalent of the decimal number 206?

206 = 11001110


Convert the decimal numbers 1987 to binary then to octal?

In binary this number is equivalent to 11111000011 while in octal it is 3703


What decimal number is equivalent to binary number 121?

That's not a binary number ! Binary numbers can only use the digits 1 and 0.


What is the binary equivalent of the decimal number 131?

The binary equivalent of the decimal number 131 is 10000011.


What is the binary equivalent of the decimal number 14?

The binary equivalent of the decimal number 14 is 00001110.


Decimal 4 is binary equivalent to?

Decimal 4 is binary 100.


What is 1101 in binary form?

If 1101 is a decimal number, then its binary equivalent is 10001001101. If 1101 is a binary number, then its decimal equivalent is 13.


What is the binary numbers?

It is 127 in decimal numbers.


What is the binary equivalent hexa number of AB5D base 16?

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.


Which binary number is equivalent of the decimal number 208?

11010000 is the equivalent binary representation of the decimal number 208.