Okay are you converting decimal to binary or binary to decimal you kind of contradicted yourself. Please use code tags as well. while (binary<=number) binary is undefined. Also you never use your "decimal" variable. As far as helping you, the greatest help would be to get you to understand the binary base because it looks like you are not sure what it is. Have you checked those links that I posted and that nomijigr posted?
yah. :-) thanks for all your links but the problem is that i dont know what to put in the while statement .... on how to convert decimal to binary and binary to decimal. can you state to me what are the missing statement -.-
my problem now is how to run the program. im looking for the while statement need your help.
Best way to convert Decimal to binary is divide your number by two. If the remainder is 1, write that down, if 0, likewise. Then divide whatever your answer to the first problem was by 2 again. Repeat until you get down to 1 or 0.