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

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