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


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.
Topic archived. No new replies allowed.