answersLogoWhite

0

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....!!!

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is decimal to binary conversion?

"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).


What decimal number is equal to the decimal no 7 How do you reach the conclusion of 0111?

When you write the decimal number '7' in Base-2 (binary), you write '0111'.


How can i calculate binary code to decimal with Casio calculator fx-ES?

To convert binary code to decimal using a Casio fx-ES calculator, switch to the "Mode" that allows for calculations, typically "COMP" mode. Enter the binary number directly, then use the "SHIFT" key followed by the "BASE" function (often labeled as "BASE" or "nCr") to select the conversion to decimal. Finally, press the "EXE" key to display the decimal equivalent of the entered binary number.


What is the decimal number of binary number of 00001010?

10 base ten


what is the decimal number of the binary number 110111?

55 base 10


What is the binary of 75 base 10?

The binary equivalent of the decimal number 75 is 1001011.


In the following write the binary number in base 10. 1001111 base 2?

Binary 1001111 is 79 in decimal.


What is the binary number for 26?

26 base 10 = 1 1010 base 2


What is the binary number 111100000 converted into a decimal in base ten?

480 base 10


What is the decimal value of the binary number 11001?

25 base 10


What is the decimal equivalent of the binary number 110111?

55 base 10


How do you express the binary number 11010010 in decimal?

210 base ten