answersLogoWhite

0

#include<stdio.h>

main()

{

int d,a;

printf("enter the number");

scanf("%d",&a);

do

{

d=a%2;

}

while(a=0);

printf("binary=%d",&d);

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


How do you convert decimal number 63 to binary?

The binary equivalent of the decimal number 63 is 111111.


How to Convert 11.1 binary to decimal?

The binary number 11.1 in decimal would be 3.5


Convert binary number 110111 to decimal?

Binary 110111 is equivalent to decimal 55.


Convert 186 decimal numbers to its binary equivalent?

Convert 189 to binary number


How we can convert decimal number into binary number in foxpro programming?

In FoxPro, you can convert a decimal number to a binary number using the DECIMAL() and STR() functions. First, use DECIMAL() to get the binary representation, then format it as a string using STR(). Here's an example: binaryString = STR(DECIMAL(decimalNumber, 2)). This will give you the binary equivalent of the decimal number.


Convert 13 into a binary number?

13 in decimal = 1101 in binary.


Write a c program to convert binary number to decimal number?

How is this a question? Sounds like you should do more of your homework offline.


Convert the decimal number 400 to binary?

110010000


What is the convert the decimal number 35 to binary?

It is 100011.


Convert the binary number 10011011to decimal?

It is 155.


What is 97 in binary code?

You can easily convert decimal to binary in the scientific calculator - for example, the scientific calculator found in Windows. In this case, type the number in decimal, then click on "binary" to convert to binary.