How to create a programme that will convert decimal to binary.

Apr 28, 2016 at 2:20am
Hello,I'm a student who is a beginner in c++ programming. I was asked to create a programme that will convert decimal to binary without using any arrays. I was allowed to use the looping statements like while, do while and for.. Any help??Please...
Apr 28, 2016 at 2:45am
you want to divide the decimal number by 2 while writing down the remainder until you have nothing left to divide.
Topic archived. No new replies allowed.