I need your help in HOW TO CONVERT DECIMAL TO BINARY using Dev C++ version 4.9.9.2 . remarks: DO WHILE LOOPING and FOR LOOPING. please need your help. imma newbie in programing. T.T soo hard to think. i try and try but nothing i got.
~
LINK for Dev C++ version 4.9.9.2 download. http://sourceforge.net/projects/dev-cpp/files/Binaries/Dev-C%2B%2B%204.9.9.2/
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.