Program to pritn decimal equivalent to binary using modulus and division operators??

Hello,

I'm having trouble knowing where to start on writing a program that takes a binary number and converts it into a decimal. I understand how to convert it on paper and how to write that part of the code but I don't understand how to use the modulus and division operators to "pick off" the digits to then use them to perform the conversions in a program. Could someone please give me a small hint? I don't want anyone to write the code for me, I'd just like a starting point. I'd sure appreciate it. Thanks!!
Last edited on
I would start by looking at other programmers attempts to do this.

http://www.cplusplus.com/forum/beginner/56063/
http://www.cplusplus.com/forum/windows/30135/
Topic archived. No new replies allowed.